summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-06-17 18:07:14 +0000
committerDavide Italiano <davide@freebsd.org>2016-06-17 18:07:14 +0000
commit4cccc488b78c8e3258828a1f18ffc9e61b184bee (patch)
treed90a8618a47e89256722f04b69c61a7b64e8c2e6 /llvm/lib/IR/Module.cpp
parent78eebe7756d301d4b0481bc7a341c6801f38f6d0 (diff)
downloadbcm5719-llvm-4cccc488b78c8e3258828a1f18ffc9e61b184bee.tar.gz
bcm5719-llvm-4cccc488b78c8e3258828a1f18ffc9e61b184bee.zip
[Codegen] Change PICLevel.
We convert `Default` to `NotPIC` so that target independent code can reason about this correctly. Differential Revision: http://reviews.llvm.org/D21394 llvm-svn: 273024
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r--llvm/lib/IR/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp
index b15cac40274..f229e2b3702 100644
--- a/llvm/lib/IR/Module.cpp
+++ b/llvm/lib/IR/Module.cpp
@@ -487,7 +487,7 @@ PICLevel::Level Module::getPICLevel() const {
auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level"));
if (!Val)
- return PICLevel::Default;
+ return PICLevel::NotPIC;
return static_cast<PICLevel::Level>(
cast<ConstantInt>(Val->getValue())->getZExtValue());
OpenPOWER on IntegriCloud