- Oct 22, 2014
-
-
Rafael Espindola authored
This matches the behavior of GNU ar and also makes it easier to implemnt support for the addlib command. llvm-svn: 220336
-
Arnaud A. de Grandmaison authored
llvm-svn: 220335
-
Rafael Espindola authored
This is a micro optimization, but also makes the code a bit more flexible. The MRIMembers variable is a short term hack. It is going away in the next commit. llvm-svn: 220334
-
Rui Ueyama authored
There are two ways to specify a symbol to be exported in the module definition file. 1) EXPORT <external name> = <symbol> 2) EXPORT <symbol> In (1), you give both external name and internal name. In that case, the linker tries to find a symbol using the internal name, and write that address to the export table with the external name. Thus, from the outer world, the symbol seems to be exported as the external name. In (2), internal name is basically the same as the external name with an exception: if you give an undecorated symbol to the EXPORT directive, and if the linker finds a decorated symbol, the external name for the symbol will become the decorated symbol. LLD didn't implement that exception correctly. This patch fixes that. llvm-svn: 220333
-
Reid Kleckner authored
This requires incorporating __GNUC_PATCHLEVEL__ into our prerequisite check, and renaming our __GNUC_PREREQ to LLVM_GNUC_PREREQ, since it is now functionally different. Patch by Chilledheart! Differential Revision: http://reviews.llvm.org/D5879 llvm-svn: 220332
-
Richard Smith authored
into multiple merged classes' TypeForDecl slots. llvm-svn: 220331
-
Nick Kledzik authored
The darwin linker operates differently than the gnu linker with respect to libraries. The darwin linker first links in all object files from the command line, then to resolve any remaining undefines, it repeatedly iterates over libraries on the command line until either all undefines are resolved or no undefines were resolved in the last pass. When Shankar made the InputGraph model, the plan for darwin was for the darwin driver to place all libraries in a group at the end of the InputGraph. Thus making the darwin model a subset of the gnu model. But it turns out that does not work because the driver cannot tell if a file is an object or library until it has been loaded, which happens later. This solution is to subclass InputGraph for darwin and just iterate the graph the way darwin linker needs. llvm-svn: 220330
-
Matt Arsenault authored
The overridden one wasn't inserting a space, so you would end up with .globalfoo llvm-svn: 220329
-
Evgeniy Stepanov authored
Sanitizer source is not affected by _FILE_OFFSET_BITS in general, but this one file must be built with 32-bit off_t. More details in the code. llvm-svn: 220328
-
Rafael Espindola authored
llvm-svn: 220327
-
Rui Ueyama authored
llvm-svn: 220326
-
Philip Reames authored
combineMetadata is used when merging two instructions into one. This change teaches it how to merge 'nonnull' - i.e. only preserve it on the new instruction if it's set on both sources. This isn't actually used yet since I haven't adjusted any of the call sites to pass in nonnull as a 'known metadata'. llvm-svn: 220325
-
Philip Reames authored
When changing the type of a load in Chandler's recent InstCombine changes, we can preserve the new 'nonnull' metadata. I considered adding an assert since 'nonnull' is only valid on pointer types, but casting a pointer to a non-pointer would involve more than a bitcast anyways. If someone extends this transform to handle more than bitcasts, the verifier will report the malformed IR, so a separate assertion isn't needed. Also, the fpmath flags would have the same problem. llvm-svn: 220324
-
Philip Reames authored
The recently added !nonnull metadata is only valid on loads of pointer type. llvm-svn: 220323
-
Enrico Granata authored
Expose the type-info flags at the public API layer. These flags provide much more informational content to consumers of the LLDB API than the existing TypeClass. Part of the fix for rdar://18517593 llvm-svn: 220322
-
Arnaud A. de Grandmaison authored
This enables targets to adapt their pass pipeline to the register allocator in use. For example, with the AArch64 backend, using PBQP with the cortex-a57, the FPLoadBalancing pass is no longer necessary. llvm-svn: 220321
-
Eric Christopher authored
outside the anonymous union as it's a language extension we don't normally support. llvm-svn: 220320
-
Eric Christopher authored
llvm-svn: 220319
-
Eric Christopher authored
llvm-svn: 220318
-
Rafael Espindola authored
llvm-svn: 220317
-
Arnaud A. de Grandmaison authored
llvm-svn: 220316
-
Rui Ueyama authored
HAVE_CXXABI_H is not defined on FreeBSD but the system actually has the header. CMake test fails because the header depends on size_t. llvm-svn: 220315
-
David Majnemer authored
This function was complicated by the fact that it tried to perform canonicalizations that were already preformed by InstSimplify. Remove this extra code and move the tests over to InstSimplify. Add asserts to make sure our preconditions hold before we make any assumptions. llvm-svn: 220314
-
Aaron Ballman authored
llvm-svn: 220313
-
Aaron Ballman authored
Follow-up commit to r211657 which introduced these macros, but not for MSVC. This turns out to break our freestanding tests on Windows when compiling in MSVC-compatible mode. It was decided (http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20141020/116942.html is the start of the thread) to support this as part of Clang's interface on all platforms. llvm-svn: 220312
-
Hal Finkel authored
-g1 on gcc (and also IBM's xlc) are documented to be very similar to -gline-tables-only. Our -gline-tables-only might still be more verbose than -g1 on other compilers, but currently we treat -g1 as -g, and so we're producing much more debug info at -g1 than everybody else. Treating -g1 as -gline-tables-only brings us much closer to what everyone else is doing. For more information, see the discussion on http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039649.html llvm-svn: 220311
-
Rafael Espindola authored
llvm-svn: 220310
-
Sanjay Patel authored
llvm-svn: 220309
-
Rafael Espindola authored
llvm-svn: 220308
-
Justin Bogner authored
This fixes crash report generation when filenames have spaces. It also removes an awkward workaround that quoted *some* arguments when generating crash reports. llvm-svn: 220307
-
Enrico Granata authored
Add typemaps to handle the transformation of Python list of strings into a 'char const **'. This fixes zephyr's issue with SBTarget::Launch without splitting the API into multiple names llvm-svn: 220306
-
Justin Bogner authored
This pushes the logic for generating a crash reproduction script entirely into Command::Print, instead of Command doing half of the work and then relying on textual substitution for the rest. This makes this logic much easier to read and will simplify fixing a couple of issues in this area. llvm-svn: 220305
-
Matt Arsenault authored
llvm-svn: 220304
-
Arnaud A. de Grandmaison authored
It is just too easy to use a virtual register intead of a NodeId without a compiler warning. This does not fix the fundamental problem, i.e. both have the same underlying types, but increases the likelyhood to detect it. llvm-svn: 220303
-
Arnaud A. de Grandmaison authored
As coalescing registers is a benefit, the cost should be improved (i.e. made smaller) when coalescing is possible. llvm-svn: 220302
-
NAKAMURA Takumi authored
llvm-svn: 220301
-
Aaron Ballman authored
llvm-svn: 220300
-
Colin LeMahieu authored
Fixing brief comment. llvm-svn: 220299
-
- Oct 21, 2014
-
-
Rafael Espindola authored
Don't duplicate names in comments and remove useless ones. Hopefully anyone reading this knows what main is. llvm-svn: 220298
-
Aaron Ballman authored
The nodebug attribute has a C++11-style spelling supported by GCC as well. This modifies it so we support that spelling as well. llvm-svn: 220297
-