aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-03 05:46:51 +0000
committerChris Lattner <sabre@nondot.org>2009-09-03 05:46:51 +0000
commit0fe3a1ed4567dfdd45125c95beed6c6b77be2088 (patch)
treebd14333e8ed905f9665b6df0ed1165d19b77acf8 /lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
parentad1950e0138c65a6e0d329055b4f60402bc36cbb (diff)
downloadexternal_llvm-0fe3a1ed4567dfdd45125c95beed6c6b77be2088.tar.gz
external_llvm-0fe3a1ed4567dfdd45125c95beed6c6b77be2088.tar.bz2
external_llvm-0fe3a1ed4567dfdd45125c95beed6c6b77be2088.zip
Thread an MCAsmInfo pointer through the various MC printing APIs,
and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp')
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
index ee797915f7..ccfe73160a 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
+++ b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
@@ -57,7 +57,7 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MCInst *MI, unsigned OpNo) {
if (Op.isImm())
O << Op.getImm();
else if (Op.isExpr())
- Op.getExpr()->print(O);
+ Op.getExpr()->print(O, MAI);
else if (Op.isMBBLabel())
// FIXME: Keep in sync with printBasicBlockLabel. printBasicBlockLabel
// should eventually call into this code, not the other way around.
@@ -93,7 +93,7 @@ void X86ATTAsmPrinter::printOperand(const MCInst *MI, unsigned OpNo,
return;
} else if (Op.isExpr()) {
O << '$';
- Op.getExpr()->print(O);
+ Op.getExpr()->print(O, MAI);
return;
}
@@ -111,7 +111,7 @@ void X86ATTAsmPrinter::printLeaMemReference(const MCInst *MI, unsigned Op) {
if (DispVal || (!IndexReg.getReg() && !BaseReg.getReg()))
O << DispVal;
} else if (DispSpec.isExpr()) {
- DispSpec.getExpr()->print(O);
+ DispSpec.getExpr()->print(O, MAI);
} else {
llvm_unreachable("non-immediate displacement for LEA?");
//assert(DispSpec.isGlobal() || DispSpec.isCPI() ||