aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 05:04:31 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 05:04:31 +0000
commit99fbae7d5b397f285b5e6a9d4da079f79214e1b3 (patch)
treed8a5027115587ce258f71d8a74b240242ba5c82c /lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
parent4e972531cf2d719522ab38ce3b5ad1a625579d03 (diff)
downloadexternal_llvm-99fbae7d5b397f285b5e6a9d4da079f79214e1b3.tar.gz
external_llvm-99fbae7d5b397f285b5e6a9d4da079f79214e1b3.tar.bz2
external_llvm-99fbae7d5b397f285b5e6a9d4da079f79214e1b3.zip
fix an ugly wart in the MCInstPrinter api where the
raw_ostream to print an instruction to had to be specified at MCInstPrinter construction time instead of being able to pick at each call to printInstruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp')
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 486ab00d66..feb2db8bb8 100644
--- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -1385,10 +1385,9 @@ void ARMAsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
static MCInstPrinter *createARMMCInstPrinter(const Target &T,
unsigned SyntaxVariant,
- const MCAsmInfo &MAI,
- raw_ostream &O) {
+ const MCAsmInfo &MAI) {
if (SyntaxVariant == 0)
- return new ARMInstPrinter(O, MAI, false);
+ return new ARMInstPrinter(MAI, false);
return 0;
}