summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* remove the MAI argument to MCExpr::print and switch overthing to use << when ↵Chris Lattner2010-01-189-39/+28
| | | | | | printing them. llvm-svn: 93699
* unbreak x86 jump tables with my previous patch.Chris Lattner2010-01-181-1/+1
| | | | llvm-svn: 93698
* Minor VTT builder cleanup, no functionality change.Anders Carlsson2010-01-171-14/+12
| | | | llvm-svn: 93696
* now that MCSymbol::print doesn't use it's MAI argument, we can Chris Lattner2010-01-1721-867/+377
| | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695
* rename NameNeedsEscaping -> NameNeedsQuoting, eliminate the checkChris Lattner2010-01-171-9/+4
| | | | | | | for first character which is a digit, mangler would have taken care of this already. llvm-svn: 93694
* Convert some of the dynamic opcode lookups into static ones.Owen Anderson2010-01-171-59/+40
| | | | llvm-svn: 93693
* stop the CBE from using Mangler::appendMangledName, which is a private ↵Chris Lattner2010-01-173-13/+17
| | | | | | function, it is mangling types, which don't matter how they are done. llvm-svn: 93692
* fix uninit member, thanks to Benjamin Kramer for identifying the bug.Chris Lattner2010-01-171-1/+1
| | | | llvm-svn: 93691
* Get MCSymbol out of the mangling business, and move all the logicChris Lattner2010-01-176-83/+115
| | | | | | | | | | | to Mangler. Now MCSymbol just decides whether to slap quotes around a symbol when printing it. This also fixes some weirdness where two MCSymbols could be created for the same symbol, if one needed to be mangled and got mangled to the other one. llvm-svn: 93690
* Really fix this. I checked that on ARM I getRafael Espindola2010-01-171-2/+2
| | | | | | | | | PASS: LLVM::FrontendC/pr5406.c (3463 of 5030) and on X86 I get XFAIL: LLVM::FrontendC/pr5406.c (3465 of 5030 llvm-svn: 93689
* reduce this test and convert to filecheck, hopefully the linux buildbot Chris Lattner2010-01-171-15/+5
| | | | | | will tell me something more useful. llvm-svn: 93688
* factor this code better how that the string version of getNameWithPrefixChris Lattner2010-01-171-28/+8
| | | | | | takes a twine. llvm-svn: 93687
* now that mangler is in libtarget, it can use MCAsmInfo instead of clientsChris Lattner2010-01-177-59/+66
| | | | | | having to pass various fields from it in. Simplify. llvm-svn: 93686
* Don't create a (empty) output file, and don't warn about bitcode outputDan Gohman2010-01-171-13/+18
| | | | | | | | | | | to a console, when --analyze is used. Similarly, avoid creating an empty output file when --disable-output is used. Print a warning when the -o option appears with either --analyze or --disable-output, to indicate that the option is being ignored. llvm-svn: 93685
* Get the ctor vtable address points directly from the VTT builder.Anders Carlsson2010-01-171-2/+12
| | | | llvm-svn: 93681
* Switch some functions to take Twines, eliminate uses of StringExtras.h.Benjamin Kramer2010-01-175-41/+21
| | | | llvm-svn: 93680
* Fix comment.Owen Anderson2010-01-171-1/+1
| | | | llvm-svn: 93679
* The Neon "vtst" instruction takes a suffix that is the element size alone --Bob Wilson2010-01-172-7/+7
| | | | | | | | adding an "i" to the suffix, indicating that the elements are integers, is accepted but not part of the standard syntax. This helps us pass a few more of the Neon tests from gcc. llvm-svn: 93677
* Fix an off-by-one error that caused the chain operand to be dropped from NeonBob Wilson2010-01-171-2/+2
| | | | | | vector load-lane and store-lane instructions. llvm-svn: 93673
* Looks like XFAIL has to list every unsupported archRafael Espindola2010-01-171-1/+1
| | | | llvm-svn: 93672
* Add test for pr5406Rafael Espindola2010-01-171-0/+20
| | | | llvm-svn: 93671
* Add a note for the macho streamer and remove a used of the mangler from the ↵Nate Begeman2010-01-172-6/+2
| | | | | | soon to be defunct machowriter pass. llvm-svn: 93670
* Reduce fsub-fadd.ll and merge it into fsub-fsub.ll. Rename fsub-fsub.ll toBill Wendling2010-01-173-47/+23
| | | | | | fsub.ll and FileCheckify it. llvm-svn: 93669
* PR6055: fix FreeBSD c++ include path. patch by Roman DivackyNuno Lopes2010-01-171-1/+1
| | | | llvm-svn: 93668
* When checking for sret-demotion, it needs to use legal types. When using ↵Kenneth Uildriks2010-01-162-11/+53
| | | | | | the return value of an sret-demoted call, it needs to use possibly illegal types that match the declared Type of the callee. llvm-svn: 93667
* Introduce a second queue of "local" pending implicit instantiation,Douglas Gregor2010-01-164-11/+61
| | | | | | | | | | which are instantiations of the member functions of local classes. These implicit instantiations have to occur at the same time as---and in the same local instantiation scope as---the enclosing function, since the member functions of the local class can refer to locals within the enclosing function. This should really, really fix PR5764. llvm-svn: 93666
* Update CMake files for Mangler move.Benjamin Kramer2010-01-162-1/+1
| | | | llvm-svn: 93665
* move the mangler into libtarget from vmcore.Chris Lattner2010-01-1614-19/+18
| | | | llvm-svn: 93664
* fix a warning.Chris Lattner2010-01-161-1/+1
| | | | llvm-svn: 93663
* this doesn't need to suck in Mangler.Chris Lattner2010-01-161-2/+0
| | | | llvm-svn: 93662
* remove obsolete comment.Chris Lattner2010-01-161-5/+2
| | | | llvm-svn: 93661
* bugpoint doesn't need the mangler at all. DisambiguateGlobalSymbolsChris Lattner2010-01-161-25/+5
| | | | | | | | dates to a time when two different LLVM values could have the same name but different types. Simplify it to just assign names to unnamed things and let the core symtab resolve duplicates. llvm-svn: 93660
* add a thing to investigate.Chris Lattner2010-01-161-0/+1
| | | | llvm-svn: 93659
* Add PCH support for CXXStaticCastExpr, CXXDynamicCastExpr, ↵Sam Weinig2010-01-166-1/+173
| | | | | | CXXReinterpretCastExpr, CXXConstCastExpr and CXXFunctionalCastExpr. llvm-svn: 93658
* remove calls to dead methods.Chris Lattner2010-01-161-8/+0
| | | | llvm-svn: 93657
* reapply the mangler gutting patch.Chris Lattner2010-01-163-250/+4
| | | | llvm-svn: 93656
* remove use of getMangledName.Chris Lattner2010-01-161-1/+1
| | | | llvm-svn: 93655
* unbreak the build.Chris Lattner2010-01-161-6/+0
| | | | llvm-svn: 93654
* While determining when to parse inline member functions of a class,Douglas Gregor2010-01-162-8/+47
| | | | | | | | | | | | distinguish between nested classes (whose member functions cannot be parsed until the innermost non-nested class is complete) and local classes (that are defined within a function but are not necessarily nested). The upshot of this change, which fixes PR5764, is that the bodies of member functions of local (non-nested) classes need to be parsed when the local class is complete (and no later), since they may refer to function-local static variables, typedefs, enums, etc. llvm-svn: 93653
* Revert 93648.Rafael Espindola2010-01-163-4/+250
| | | | | | | | Mangler::getMangledName is used from lto Mangler::setUseQuotes is used in the AsmPrinter Mangler::setSymbolsCanStartWithDigit is used in the AsmPrinter llvm-svn: 93652
* When we are instantiating a member function of a local class, be sureDouglas Gregor2010-01-164-9/+33
| | | | | | | | | to merge the local instantiation scope with the outer local instantiation scope, so that we can instantiate declarations from the function owning the local class. Fixes an assert while instantiating Boost.MPL's BOOST_MPL_ASSERT_MSG. llvm-svn: 93651
* Fix a rewriting crash and correct rewriting of __blockFariborz Jahanian2010-01-162-7/+29
| | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650
* Mangler::getMangledName is now dead, remove it and all the other stuff in ↵Chris Lattner2010-01-163-250/+4
| | | | | | Mangler that is now transitively dead. woo. llvm-svn: 93648
* Change DIEObjectLabel to take an MCSymbol instead of std::string.Chris Lattner2010-01-166-10/+23
| | | | llvm-svn: 93647
* rename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase,Chris Lattner2010-01-168-43/+63
| | | | | | | | and add an explicit ForcePrivate argument. Switch FunctionEHFrameInfo to be MCSymbol based instead of string based. llvm-svn: 93646
* eliminate uses of getMangledName from AsmPrinter.cpp, last up is Chris Lattner2010-01-161-5/+9
| | | | | | dwarf emission which is going to be more invasive. llvm-svn: 93645
* Improve the test for unused-expression warnings slightlyDouglas Gregor2010-01-161-0/+9
| | | | llvm-svn: 93644
* switch liblto to use the new getNameWithPrefix() method instead of ↵Chris Lattner2010-01-164-6/+7
| | | | | | getMangledName. llvm-svn: 93643
* Partial fix for PR6022, where we were complaining when a friendDouglas Gregor2010-01-162-2/+19
| | | | | | | | function template declared within a class template did not match a function in another scope. We really need to rework how friends-in-templates are semantically checked. llvm-svn: 93642
* add an inefficient version of getNameWithPrefix that returns an std::string.Chris Lattner2010-01-162-0/+15
| | | | llvm-svn: 93641
OpenPOWER on IntegriCloud