summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
diff options
context:
space:
mode:
authorKamlesh Kumar <kamleshbhalui@gmail.com>2019-12-16 15:14:08 -0800
committerReid Kleckner <rnk@google.com>2019-12-16 15:21:23 -0800
commitaa5ee8f244441a8ea103a7e0ed8b6f3e74454516 (patch)
treeaffd1a1ded3287b70ad2e073109bda3f10656ac7 /llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
parentd7af86bdd0bdc9509fd7fdc3ae34bb0f4b9d269f (diff)
downloadbcm5719-llvm-aa5ee8f244441a8ea103a7e0ed8b6f3e74454516.tar.gz
bcm5719-llvm-aa5ee8f244441a8ea103a7e0ed8b6f3e74454516.zip
Honor -fuse-init-array when os is not specified on x86
Currently -fuse-init-array option is not effective when target triple does not specify os, on x86,x86_64. i.e. // -fuse-init-array is not honored. $ clang -target i386 -fuse-init-array test.c -S // -fuse-init-array is honored. $ clang -target i386-linux -fuse-init-array test.c -S This patch fixes first case. And does cleanup. Reviewers: rnk, craig.topper, fhahn, echristo Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D71360
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
index 54562094fcf..fb37a2ca6dd 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
@@ -20,7 +20,6 @@ using namespace dwarf;
void AArch64_ELFTargetObjectFile::Initialize(MCContext &Ctx,
const TargetMachine &TM) {
TargetLoweringObjectFileELF::Initialize(Ctx, TM);
- InitializeELF(TM.Options.UseInitArray);
// AARCH64 ELF ABI does not define static relocation type for TLS offset
// within a module. Do not generate AT_location for TLS variables.
SupportDebugThreadLocalLocation = false;
OpenPOWER on IntegriCloud