- Apr 02, 2015
-
-
Jason Molenda authored
When we're seeing offsets that exceed the size of our section, don't try to use that unwind info. <rdar://problem/20113673> llvm-svn: 233886
-
Lang Hames authored
use these to add support for C++ static ctors/dtors to the Orc-lazy JIT in LLI. Replace the trivial_retval_1 regression test - the new 'hello' test is covering strictly more code. llvm-svn: 233885
-
Craig Topper authored
llvm-svn: 233884
-
Rui Ueyama authored
registerRelocationNames() function is called to register all known ELF relocation types to the central registry. Since we have separate LinkingContext class for each ELF machine type, we need to call the function for each LinkingContext. However, the function belonged to TargetHandler instead of LinkingContext. So we needed to do ctx.getTargetHandler().registerRelocationNames(). This patch removes that redundant getTargetHandler call by moving the function from TargetHandler to LinkingContext. Conceptually this patch is small, but in reality it's not that small. It's because the same code is copied to each architecture. Most of this patch is just repetition. We need to merge them, but that cannot be done in this patch. llvm-svn: 233883
-
Rui Ueyama authored
Also removed some over-generalization added in r232866, such as making a function take two parameters and pass two equivalent arguments to the function. llvm-svn: 233882
-
Alexey Samsonov authored
llvm-svn: 233881
-
Rui Ueyama authored
llvm-svn: 233880
-
Alexey Samsonov authored
llvm-svn: 233879
-
Rui Ueyama authored
Other createWriter<Arch> functions take <Arch>LinkingContext as arguments. Only createWriterELF was an exception. This patch makes it consistent with others. llvm-svn: 233878
-
Peter Collingbourne authored
Differential Revision: http://reviews.llvm.org/D8792 llvm-svn: 233876
-
Peter Collingbourne authored
This uses the same class metadata currently used for virtual call and cast checks. The new flag is -fsanitize=cfi-nvcall. For consistency, the -fsanitize=cfi-vptr flag has been renamed -fsanitize=cfi-vcall. Differential Revision: http://reviews.llvm.org/D8756 llvm-svn: 233874
-
Rui Ueyama authored
llvm-svn: 233873
-
Rui Ueyama authored
llvm-svn: 233872
-
Daniel Berlin authored
llvm-svn: 233870
-
Daniel Berlin authored
Summary: This is necessary in order to make removal while using reverse iterators work. (See http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/084122.html) Updates to other eraseFromParent's to come in later patches. Reviewers: chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8783 llvm-svn: 233869
-
Siva Chandra authored
Test Plan: Build LLDB. Reviewers: spyffe Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8791 llvm-svn: 233868
-
Rui Ueyama authored
<Arch>TargetHandler::kindString is a static member variable containg a list of names of relocation types. The member is used only by one function, registerRelocationNames, so they don't have to be a static member. This patch makes the visibility of the data narrower by making them file-scoped variables in small files. llvm-svn: 233867
-
Reid Kleckner authored
llvm-svn: 233866
-
Alexey Samsonov authored
llvm-svn: 233865
-
Rui Ueyama authored
llvm-svn: 233864
-
Rui Ueyama authored
llvm-svn: 233863
-
Alexey Samsonov authored
Summary: Change the way we use ASan and UBSan together. Instead of keeping two separate runtimes (libclang_rt.asan and libclang_rt.ubsan), embed UBSan into ASan and get rid of libclang_rt.ubsan. If UBSan is not supported on a platform, all UBSan sources are just compiled into dummy empty object files. UBSan initialization code (e.g. flag parsing) is directly called from ASan initialization, so we are able to enforce correct initialization order. This mirrors the approach we already use for ASan+LSan. This change doesn't modify the way we use standalone UBSan. Test Plan: regression test suite Reviewers: kubabrecka, zaks.anna, rsmith, kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8646 llvm-svn: 233861
-
Alexey Samsonov authored
Summary: Change the way we use ASan and UBSan together. Instead of keeping two separate runtimes (libclang_rt.asan and libclang_rt.ubsan), embed UBSan into ASan and get rid of libclang_rt.ubsan. If UBSan is not supported on a platform, all UBSan sources are just compiled into dummy empty object files. UBSan initialization code (e.g. flag parsing) is directly called from ASan initialization, so we are able to enforce correct initialization order. This mirrors the approach we already use for ASan+LSan. This change doesn't modify the way we use standalone UBSan. Test Plan: regression test suite Reviewers: kubabrecka, zaks.anna, kcc, rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D8645 llvm-svn: 233860
-
Rui Ueyama authored
llvm-svn: 233859
-
Sean Callanan authored
lambda in SymbolFileDWARFDebugMap. <rdar://problem/20261196> llvm-svn: 233858
-
Matthias Braun authored
llvm-svn: 233857
-
Kevin Enderby authored
llvm-svn: 233856
-
Kostya Serebryany authored
llvm-svn: 233842
-
Matthias Braun authored
llvm-svn: 233841
-
Kevin Enderby authored
print the Objective-C runtime meta data for Mach-O files. There are three types of Objective-C runtime meta data, Objc2 64-bit, Objc2 32-bit and Objc1 32-bit. This prints the first of these types. The changes to print the others will follow next. llvm-svn: 233840
-
Sean Callanan authored
files. Before we'd give up if we found a .o that doesn't have DWARF associated with it; now we iterate through them all. Also made this iteration a higher-order function so that people don't have to remember to do this right. <rdar://problem/20261196> llvm-svn: 233838
-
Chaoren Lin authored
Summary: The implementation of GDBRemoteRegisterContext relies on byte offsets to cache register values. GPR, FPR, etc. should start on different offsets. This is correctly done in debugserver (in DNBArchImplX86_64.cpp), but not on Linux or FreeBSD (in RegisterInfos_x86_64.h). Test Plan: `register read st0` no longer overwrites `rbp` on Linux with LLGS. Reviewers: sivachandra, jingham, emaste, ovyalov, clayborg Reviewed By: clayborg Subscribers: emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D8685 llvm-svn: 233837
-
Eli Bendersky authored
It was unsigned before, which is unlike any other target and also doesn't make much sense. llvm-svn: 233836
-
Reid Kleckner authored
Update the test cases to pass when lambda call operators use thiscall. Update the lambda-to-block conversion operator to use the default free function calling convention instead of the call operator's convention. This reverts commit r233082 and re-instates r233023. llvm-svn: 233835
-
Reid Kleckner authored
llvm-svn: 233834
-
Richard Smith authored
constructors, instead of having the typo-correction code also dispatch to the inheriting constructor special case. llvm-svn: 233833
-
Benjamin Kramer authored
addl has higher throughput and this was needlessly picking a suboptimal encoding causing PR23098. I wish there was a way of doing this without further duplicating tbl- generated patterns, but so far I haven't found one. llvm-svn: 233832
-
Davide Italiano authored
Differential Revision: http://reviews.llvm.org/D8761 llvm-svn: 233831
-
Eli Bendersky authored
llvm-svn: 233830
-
Sanjoy Das authored
Summary: This change teaches ScalarEvolution::isLoopBackedgeGuardedByCond to look at edges within the loop body that dominate the latch. We don't do an exhaustive search for all possible edges, but only a quick walk up the dom tree. This re-lands r233447. r233447 was reverted because it caused massive compile-time regressions. This change has a fix for the same issue. llvm-svn: 233829
-