Devang Patel
2ae3397536
Verify variable directly.
...
llvm-svn: 103305
2010-05-07 22:04:20 +00:00
Chris Lattner
028449325b
add COFF support for COMDAT sections, patch by Nathan Jeffords!
...
llvm-svn: 103304
2010-05-07 21:49:09 +00:00
Devang Patel
8d6a2b7428
Verify entire type descriptor not just tag.
...
llvm-svn: 103303
2010-05-07 21:45:47 +00:00
Kevin Enderby
51bed9c870
Fix i386 relocations to Weak Definitions. The relocation entries should be
...
external and the item to be relocated should not have the address of the
symbol added in.
llvm-svn: 103302
2010-05-07 21:44:23 +00:00
Chris Lattner
ca025db769
add PCH support for a bunch of C++ Decls, patch by
...
Andrew Sutton!
llvm-svn: 103301
2010-05-07 21:43:38 +00:00
Devang Patel
2c4d69d7ad
Verify compile unit also.
...
llvm-svn: 103300
2010-05-07 21:42:24 +00:00
Dale Johannesen
51c1695a0a
Fix PR 7087, and probably other things, by extending
...
getConstantFP to accept the two supported long double
target types. This was not the original intent, but
there are other places that assume this works and it's
easy enough to do.
llvm-svn: 103299
2010-05-07 21:35:53 +00:00
John McCall
eb3e4f3481
Make that null-dereference fix a little clearer by rearranging some code.
...
llvm-svn: 103298
2010-05-07 21:34:32 +00:00
John McCall
06f0e09756
Fix a potential null dereference in the pointer-to-bool evaluator; caught by
...
Eli Friedman.
llvm-svn: 103297
2010-05-07 21:01:17 +00:00
John McCall
45d55e4f26
Change the pointer / lvalue constant evaluators to build into a target reference
...
and return a bool.
llvm-svn: 103296
2010-05-07 21:00:08 +00:00
Devang Patel
32cc43c242
Wrap const MDNode * inside DIDescriptor.
...
llvm-svn: 103295
2010-05-07 20:54:48 +00:00
Chris Lattner
e979e30501
add more types to -ast-print-xml, PR5006
...
llvm-svn: 103294
2010-05-07 20:45:29 +00:00
Ted Kremenek
37c220c8ed
Extend C++ usrs to include type mangling for tag decl arguments, indicating whether a method
...
is static, and mangling in the qualifers of the method.
llvm-svn: 103289
2010-05-07 20:39:40 +00:00
Chris Lattner
a99fa1aee1
clean up isBeforeInTranslationUnit by factoring out some common
...
code into a MoveUpIncludeHierarchy helper, and use the helper to
fix a case involving macros which regressed from my recent patch.
llvm-svn: 103288
2010-05-07 20:35:24 +00:00
Devang Patel
be8ee1a09e
Update test to use valid debug info.
...
llvm-svn: 103287
2010-05-07 20:34:00 +00:00
Ted Kremenek
dacfc2eee6
Switch USR generation over from NamedDecl::getNameAsString() to NamedDecl::printName().
...
llvm-svn: 103285
2010-05-07 20:07:23 +00:00
Ted Kremenek
c14f5eb3ec
Add NamedDecl::printName() for clients that to use getNameAsString() but are already using a raw_ostream.
...
llvm-svn: 103284
2010-05-07 20:07:19 +00:00
Douglas Gregor
496e8b345c
Reapply the reference-binding patch applied below, along with a fix to
...
ensure that we complete the type when we need to look at constructors
during reference binding.
When determining whether the two types involved in reference binding
are reference-compatible, reference-related, etc., do not complete the
type of the reference itself because it is not necessary to determine
well-formedness of the program. Complete the type that we are binding
to, since that can affect whether we know about a derived-to-base
conversion.
Re-fixes PR7080.
llvm-svn: 103283
2010-05-07 19:42:26 +00:00
Fariborz Jahanian
7828ab1ed9
Minor mod. to my last patch.
...
llvm-svn: 103280
2010-05-07 18:59:54 +00:00
Fariborz Jahanian
fdf474b05e
Fixes a Code gen crash trying to use a dot-syntax for
...
a property of a c++ class object (radar 7957369).
llvm-svn: 103279
2010-05-07 18:56:13 +00:00
Devang Patel
8ae34dbd34
remove DIDescriptor::getNode()
...
llvm-svn: 103278
2010-05-07 18:36:34 +00:00
Jim Grosbach
2a41cad900
Clean up the conditional for handling of sign_extend_inreg based on
...
whether the extract instructions are available.
rdar://7956878
llvm-svn: 103277
2010-05-07 18:34:55 +00:00
Devang Patel
4423abd734
Use overloaded operators instead of DIDescriptor::getNode()
...
llvm-svn: 103276
2010-05-07 18:19:32 +00:00
Devang Patel
ba4ad7f2fd
Avoid use of DIDescriptor::getNode(). Use overloaded operators instead.
...
llvm-svn: 103273
2010-05-07 18:12:35 +00:00
Devang Patel
cfa8e9d45f
Avoid DIDescriptor::getNode(). Use overloaded operators instead.
...
llvm-svn: 103272
2010-05-07 18:11:54 +00:00
Kalle Raiskila
b3c5c4611c
Testing svn access with a note added to documentation.
...
llvm-svn: 103271
2010-05-07 18:06:28 +00:00
Ted Kremenek
58a0bd48ad
Update CMake build.
...
llvm-svn: 103269
2010-05-07 17:29:48 +00:00
John McCall
93d91dcdb7
Change the complex constant evaluator to return a bool instead of an APValue.
...
llvm-svn: 103268
2010-05-07 17:22:02 +00:00
Chris Lattner
87cffa9498
switch MCSectionCOFF from a syntactic to semantic representation,
...
patch by Peter Housel!
llvm-svn: 103267
2010-05-07 17:17:41 +00:00
Ted Kremenek
d90773ebe0
Update CMake build.
...
llvm-svn: 103266
2010-05-07 17:13:20 +00:00
Duncan Sands
ebf838274f
Correct some bogus target triples.
...
llvm-svn: 103265
2010-05-07 17:03:48 +00:00
Dan Gohman
50689f0bb9
Add some words to this output to indicate what the numbers mean.
...
llvm-svn: 103264
2010-05-07 16:39:27 +00:00
Chris Lattner
b87e3fee0f
don't pass -f to llc, it doesn't have it anymore. Patch by Kevin Fan (PR7090)
...
llvm-svn: 103263
2010-05-07 16:27:04 +00:00
Dan Gohman
fb64b5dff4
Add a simple module-level debug info printer. It just sets up a
...
DebugInfoFinder and iterates over all the contents calling print.
llvm-svn: 103262
2010-05-07 16:22:32 +00:00
Dan Gohman
6c30e879f8
Fix the new print functions to call print instead of dump.
...
llvm-svn: 103261
2010-05-07 16:17:22 +00:00
Douglas Gregor
dda3f33987
Add missing #include
...
llvm-svn: 103260
2010-05-07 15:59:09 +00:00
Douglas Gregor
56f14e575d
Revert r103220. It seems to be breaking self-host
...
llvm-svn: 103259
2010-05-07 15:55:52 +00:00
Douglas Gregor
542ad31597
Add a stub frontend action for BoostCon, for next week's workshop.
...
llvm-svn: 103258
2010-05-07 15:41:56 +00:00
Dan Gohman
5d5b8b1b8c
Add an LLVM IR version of code sinking. This uses the same simple algorithm
...
as MachineSink, but it isn't constrained by MachineInstr-level details.
llvm-svn: 103257
2010-05-07 15:40:13 +00:00
Dan Gohman
65f6acc551
Const-ify some stuff.
...
llvm-svn: 103256
2010-05-07 15:36:10 +00:00
Dan Gohman
4bbcf644da
Convert the DebugInfo classes dump() methods into print(raw_ostream &)
...
methods, and add dump functions implemented in terms of the print.
llvm-svn: 103254
2010-05-07 15:30:29 +00:00
Rafael Espindola
a1f9cc1bec
Fix PR4386 by implementing gcc's old behaviour (4.2) when initializing
...
variables with a comparison of a function pointer with 0.
llvm-svn: 103253
2010-05-07 15:18:43 +00:00
Sebastian Redl
872fad8627
Test case for my last fix.
...
llvm-svn: 103252
2010-05-07 11:15:33 +00:00
Tobias Grosser
4c91c526ca
Document graphviz passes for the (post) dominator tree.
...
Add documentation for:
-dot-dom
-dot-dom-only
-dot-postdom
-dot-postdom-only
-view-dom
-view-dom-only
-view-postdom
-view-postdom-only
llvm-svn: 103251
2010-05-07 09:33:18 +00:00
Sebastian Redl
fa1f70f338
A correct fix for bug 6466.
...
llvm-svn: 103250
2010-05-07 09:25:11 +00:00
Sebastian Redl
2e702738bb
And finally, revert the accidental check-in part of the previous reversion. I'm on a roll.
...
llvm-svn: 103249
2010-05-07 09:11:09 +00:00
Sebastian Redl
0b4e312566
Revert 103247, it causes lots of test failures.
...
llvm-svn: 103248
2010-05-07 09:09:23 +00:00
Sebastian Redl
019b5dbc55
Pass the correct type to BuildMemberReferenceExpr. Fixes bug 6466.
...
llvm-svn: 103247
2010-05-07 09:06:26 +00:00
Chris Lattner
06821c9e90
reimplement the guts of SourceManager::isBeforeInTranslationUnit
...
to be algorithmically faster and avoid an std::map. This routine
basically boils down to finding the nearest common ancestor in a
tree, and we (implicitly) have information about nesting depth,
use it!
This wraps up rdar://7948633 - SourceManager::isBeforeInTranslationUnit has poor performance
llvm-svn: 103239
2010-05-07 05:51:13 +00:00
John McCall
f0c4f356b8
Change Evaluate* in the constant evaluator to enforce being given an argument of
...
the right type. It turns out that the code was already doing this.
llvm-svn: 103238
2010-05-07 05:46:35 +00:00