summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [yaml2obj] Add support for sh_addralign via `AddressAlign` key.Sean Silva2013-06-141-0/+1
| | | | | | | For consistency, change the address in the test case from 0xDEADBEEF to 0xCAFEBABE since 0xCAFEBABE that actually has a 2-byte alignment. llvm-svn: 183962
* Move #include from .h to .cpp file.Jakub Staszak2013-06-141-0/+1
| | | | llvm-svn: 183960
* [yaml2obj] Add support for specifying raw section content.Sean Silva2013-06-131-0/+1
| | | | llvm-svn: 183955
* [yaml2obj] Add sh_addr via `Address` key.Sean Silva2013-06-131-0/+1
| | | | llvm-svn: 183954
* [yaml2obj] Initial ELF section support.Sean Silva2013-06-131-0/+47
| | | | | | | The current functionality is extremely basic and a bit rough around the edges, but it will flesh out in future commits. llvm-svn: 183953
* Try to fix the windows build.Rafael Espindola2013-06-131-1/+1
| | | | llvm-svn: 183950
* Don't use PathV1.h in Signals.h.Rafael Espindola2013-06-135-14/+18
| | | | llvm-svn: 183947
* Don't use PathV1.h in FileUtilities.h.Rafael Espindola2013-06-131-2/+6
| | | | llvm-svn: 183941
* Avoid using PathV1.h in Program.h.Rafael Espindola2013-06-133-22/+29
| | | | llvm-svn: 183940
* R600: Don't try to fix reg class when copying IMPLICIT_DEF to a registerTom Stellard2013-06-131-1/+2
| | | | | | | | | The test case for this is way too complex to be useful as a lit test, and I was unable to reduce it. https://bugs.freedesktop.org/show_bug.cgi?id=65438 llvm-svn: 183937
* Add a version of sys::ExecuteAndWait that takes StringRefs.Rafael Espindola2013-06-131-0/+23
| | | | llvm-svn: 183934
* Fix DeleteDeadVarargs not to crash on functions referenced by BlockAddressesDerek Schuff2013-06-132-3/+10
| | | | | | | | | | | | | | | This pass was assuming that if hasAddressTaken() returns false for a function, the function's only uses are call sites. That's not true because there can be references by BlockAddresses too. Fix the pass to handle this case. Fix BlockAddress::replaceUsesOfWithOnConstant() to allow a function's type to be changed by RAUW'ing the function with a bitcast of the recreated function. Patch by Mark Seaborn. llvm-svn: 183933
* Have sys::FindProgramByName return a std::string.Rafael Espindola2013-06-132-15/+15
| | | | llvm-svn: 183928
* Mips: Remove global set.Benjamin Kramer2013-06-132-57/+68
| | | | | | Backends shouldn't retain any global state. No functionality change. llvm-svn: 183927
* Merge changes to clang's Driver code into LLVM's Option libraryReid Kleckner2013-06-132-7/+29
| | | | | | | | | | | | This is in preparation for switching the clang driver over to using LLVM's Option library. Richard Smith introduced most of these changes to the clang driver in r167638. Reviewers: espindola on IRC Differential Revision: http://llvm-reviews.chandlerc.com/D970 llvm-svn: 183925
* Covert remaining graph viewers from sys::Path to std::string.Rafael Espindola2013-06-131-3/+3
| | | | llvm-svn: 183921
* Update code for other graph viewing programs too.Rafael Espindola2013-06-131-3/+3
| | | | llvm-svn: 183920
* Reduce usage of sys::Path in the graph writer.Rafael Espindola2013-06-131-22/+40
| | | | | | Now PathV1.h is not needed in GraphWriter.h. llvm-svn: 183919
* ARM: fix B decodingAmaury de la Vieuville2013-06-131-1/+1
| | | | llvm-svn: 183914
* ARM: fix t2am_imm8_offset operand printing for imm=#-0Amaury de la Vieuville2013-06-131-1/+3
| | | | llvm-svn: 183913
* X86: Make the cmov aliases work with intel syntax too.Benjamin Kramer2013-06-131-21/+25
| | | | llvm-svn: 183907
* [Support] Fix handle and memory leak for processes that are not waited forReid Kleckner2013-06-133-40/+27
| | | | | | | | | | | | Execute's Data parameter is now optional, so we won't allocate memory for it on Windows and we'll close the process handle. The Unix code should probably do something similar to avoid accumulation of zombie children that haven't been waited on. Tested on Linux and Windows. llvm-svn: 183906
* Zero-initializing variables; fixes a build breakage introduced in r183864.Aaron Ballman2013-06-131-2/+2
| | | | llvm-svn: 183904
* Print ConstantPool entries initialized to Values with WriteAsOperand instead ofDan Gohman2013-06-121-1/+2
| | | | | | | operator<< so that functions are printed as just their name instead of as their entire definition, which is excessively verbose in this context. llvm-svn: 183871
* [Win] Put ChangeStdinToBinary ChangeStdoutToBinary ChangeStderrToBinary in sys.Rafael Espindola2013-06-121-3/+3
| | | | llvm-svn: 183868
* s/Void/void.Rafael Espindola2013-06-121-1/+1
| | | | llvm-svn: 183866
* Attempt at fixing the windows build.Rafael Espindola2013-06-121-34/+35
| | | | llvm-svn: 183865
* Remove the program class.Rafael Espindola2013-06-126-46/+40
| | | | | | | It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. llvm-svn: 183864
* Revert r183854 (PPC: Fix switch warnings from r183841)David Blaikie2013-06-122-3/+2
| | | | | | | Now that the PRED_BAD has been removed, this is failing the Clang -Werror build due to -Wcovered-switch-default. llvm-svn: 183863
* [PowerPC] Remove PRED_BAD from PPC::Predicate enumeration.Bill Schmidt2013-06-121-2/+1
| | | | | | | | I'm taking David Blaikie's suggestion to use an Optional<PPC::Predicate> return value instead. That's the right solution for this problem. Thanks for pointing out that possibility! llvm-svn: 183858
* [PowerPC] Fix switch warnings from r183841.Bill Schmidt2013-06-122-2/+3
| | | | | | | Introducing PRED_BAD caused some unexpected warnings that are now suppressed. llvm-svn: 183854
* readobj: Dump PE/COFF optional records.Rui Ueyama2013-06-122-38/+67
| | | | | | | | | | | | These records are mandatory for executables and are used by the loader. Reviewers: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D939 llvm-svn: 183852
* Always remove an alias when we rename the target.Rafael Espindola2013-06-121-3/+1
| | | | | | Should fix the dragonegg build bots. llvm-svn: 183845
* [PowerPC] Expose some calling convention functions in PPCISelLowering.h.Bill Schmidt2013-06-122-29/+32
| | | | | | | | | | | | | | This is a preparatory patch for fast-isel support. The instruction selector will need to access some functions in PPCGenCallingConv.inc, which in turn requires several helper functions to be defined. These are currently defined near the only use of PCCGenCallingConv.inc, inside PPCISelLowering.cpp. This patch moves the declaration of the functions into the associated header file to provide the needed visibility. No functional change intended. llvm-svn: 183844
* Don't use PathV1 in CommandLine.cpp.Rafael Espindola2013-06-121-22/+10
| | | | | | No functionality change. llvm-svn: 183842
* Add artificial PRED_BAD to PPC::Predicate enumeration.Bill Schmidt2013-06-121-1/+2
| | | | | | | | Allows returning a PPC::Predicate from a function with a no-predicate value possible. Preparatory patch for fast-isel on PPC64 ELF. No behavioral change intended. llvm-svn: 183841
* Inline Path::isBitcodeFile into only use and remove it.Rafael Espindola2013-06-121-8/+0
| | | | llvm-svn: 183840
* Remove Path::getMagicNumber.Rafael Espindola2013-06-122-39/+0
| | | | llvm-svn: 183839
* Remove Path::hasMagicNumber.Rafael Espindola2013-06-121-7/+0
| | | | llvm-svn: 183838
* Remove Path::isAbsolute.Rafael Espindola2013-06-122-26/+0
| | | | llvm-svn: 183836
* Remove Path::isAbsolute().Rafael Espindola2013-06-122-22/+0
| | | | llvm-svn: 183835
* [MC/DWARF] Support .debug_frame / .debug_line code alignment factorsUlrich Weigand2013-06-124-31/+25
| | | | | | | | | | | | | | | | | | | | | | | | | I've been comparing the object file output of LLVM's integrated assembler against the external assembler on PowerPC, and one area where differences still remain are in DWARF sections. In particular, the GNU assembler generates .debug_frame and .debug_line sections using a code alignment factor of 4, since all PowerPC instructions have size 4 and must be aligned to a multiple of 4. However, current MC code hard-codes a code alignment factor of 1. This patch changes this by adding a "minimum instruction alignment" data element to MCAsmInfo and using this as code alignment factor. This requires passing a MCContext into MCDwarfLineAddr::Encode and MCDwarfLineAddr::EncodeAdvanceLoc. Note that one caller, MCDwarfLineAddr::Write, didn't actually have that information available. However, it turns out that this routine is in fact never used in the whole code base, so the patch simply removes it. If it turns out to be needed again at a later time, it could be re-added with an updated interface. llvm-svn: 183834
* Remove Path::getSuffix.Rafael Espindola2013-06-122-33/+0
| | | | llvm-svn: 183833
* Remove sys::CopyFile.Rafael Espindola2013-06-122-58/+0
| | | | llvm-svn: 183831
* Fix 'gcc -flto' builds for unittest binaries (undefined reference toPatrik Hagglund2013-06-121-1/+0
| | | | | | | | | `typeinfo for llvm::cl::GenericOptionValue'). Remove an "anchor" method for an abstract class. (This does not increase the number of vtables.) llvm-svn: 183830
* Remove the old file memory mapping functions.Rafael Espindola2013-06-123-30/+1
| | | | llvm-svn: 183828
* Remove Path::createFileOnDisk.Rafael Espindola2013-06-122-22/+0
| | | | llvm-svn: 183827
* Remove Path::makeExecutableOnDisk.Rafael Espindola2013-06-122-11/+0
| | | | llvm-svn: 183826
* Fix gcc -flto build, by adding LLVM_ATTRIBUTE_USED toPatrik Hagglund2013-06-121-0/+1
| | | | | | LLVMX86CompilationCallback2, called from inline asm. llvm-svn: 183824
* 80-colsSean Silva2013-06-121-1/+2
| | | | | | This slipped in during a hasty renaming. llvm-svn: 183810
OpenPOWER on IntegriCloud