summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2015-09-18 11:13:43 +0000
committerJoerg Sonnenberger <joerg@bec.de>2015-09-18 11:13:43 +0000
commit924f6ad63dc3a000662a5f4734629d3e58372672 (patch)
tree93525dcb62e4b91bcf28a4feff1f2fc31e69b5f9 /clang/lib/CodeGen/BackendUtil.cpp
parent020296a968662a1265383b61bd0ccfeabeef7736 (diff)
downloadbcm5719-llvm-924f6ad63dc3a000662a5f4734629d3e58372672.tar.gz
bcm5719-llvm-924f6ad63dc3a000662a5f4734629d3e58372672.zip
Pass the relocation model to LLVM for assembler files.
llvm-svn: 247981
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 55d1a9e13b0..998a07c787a 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -463,6 +463,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
FeaturesStr = Features.getString();
}
+ // Keep this synced with the equivalent code in tools/driver/cc1as_main.cpp.
llvm::Reloc::Model RM = llvm::Reloc::Default;
if (CodeGenOpts.RelocationModel == "static") {
RM = llvm::Reloc::Static;
OpenPOWER on IntegriCloud