summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-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 37099c468cb..a355e09824e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -125,7 +125,7 @@ AsmPrinter::~AsmPrinter() {
}
bool AsmPrinter::isPositionIndependent() const {
- return TM.getRelocationModel() == Reloc::PIC_;
+ return TM.isPositionIndependent();
}
/// getFunctionNumber - Return a unique ID for the current function.
OpenPOWER on IntegriCloud