summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-01-26 09:25:43 +0000
committerJames Molloy <james.molloy@arm.com>2012-01-26 09:25:43 +0000
commit6685c08e5f91ab7d40b06d1eeb0943afc0c4ae54 (patch)
tree732542f29d02943edcebb5a7db0a77a31f889940 /llvm/lib/CodeGen
parent5f29b0e57b408f90201c39e20216823a21df60f9 (diff)
downloadbcm5719-llvm-6685c08e5f91ab7d40b06d1eeb0943afc0c4ae54.tar.gz
bcm5719-llvm-6685c08e5f91ab7d40b06d1eeb0943afc0c4ae54.zip
Add support for the R_ARM_TARGET1 relocation, which should be given to relocations applied to all C++ constructors and destructors.
This enables the linker to match concrete relocation types (absolute or relative) with whatever library or C++ support code is being linked against. llvm-svn: 149057
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index d67b164fb8d..38638674866 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1296,7 +1296,7 @@ void AsmPrinter::EmitXXStructorList(const Constant *List, bool isCtor) {
OutStreamer.SwitchSection(OutputSection);
if (OutStreamer.getCurrentSection() != OutStreamer.getPreviousSection())
EmitAlignment(Align);
- EmitGlobalConstant(Structors[i].second);
+ EmitXXStructor(Structors[i].second);
}
}
OpenPOWER on IntegriCloud