summaryrefslogtreecommitdiff
path: root/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
commitd2e7196d0a1b33b16b4693a3278ca2f580bf0f0e (patch)
treeb92c8092e01bd3cd2b439ebe5260ecbc5cab49db /lib/IR/Module.cpp
parentde71999c85922650fd2b1ac1987a0516c77ddb02 (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Module.cpp')
-rw-r--r--lib/IR/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp
index b15cac40274..f229e2b3702 100644
--- a/lib/IR/Module.cpp
+++ b/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());