summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-03-28 20:56:05 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-03-28 20:56:05 +0000
commit16adb81a9eeb689a6f0efc33e22705b0c9a61666 (patch)
tree3b47121891dda6e161c0dd0e60e48242164ac5e6 /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
parent1d0799455090824f80969a1516550e9151817740 (diff)
downloadbcm5719-llvm-16adb81a9eeb689a6f0efc33e22705b0c9a61666.tar.gz
bcm5719-llvm-16adb81a9eeb689a6f0efc33e22705b0c9a61666.zip
[X86] Read the feature bits from the subtarget that is passed to printInst
instead of from MCInstPrinter::AvailableFeatures. llvm-svn: 233485
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
index cabe4d55c02..f265f1dee9d 100644
--- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
+++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
@@ -57,7 +57,7 @@ void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS,
// InstrInfo.td as soon as Requires clause is supported properly
// for InstAlias.
if (MI->getOpcode() == X86::CALLpcrel32 &&
- (getAvailableFeatures() & X86::Mode64Bit) != 0) {
+ (STI.getFeatureBits() & X86::Mode64Bit) != 0) {
OS << "\tcallq\t";
printPCRelImm(MI, 0, OS);
}
OpenPOWER on IntegriCloud