From 44681074ceae90806538a0adc55ed3ab93768a52 Mon Sep 17 00:00:00 2001 From: Oliver Stannard Date: Tue, 6 Mar 2018 16:51:17 +0000 Subject: [PATCH] [Asm] Fix another layering violation in assmebly macro dumping AsmToken is in the MCParser library, so we can't use its dump function from MCAsmMacro in the MC library. Instead, just print the string, which we don't need the MCParser library for. llvm-svn: 326810 --- llvm/lib/MC/MCAsmMacro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCAsmMacro.cpp b/llvm/lib/MC/MCAsmMacro.cpp index b030767..7e89c03 100644 --- a/llvm/lib/MC/MCAsmMacro.cpp +++ b/llvm/lib/MC/MCAsmMacro.cpp @@ -25,7 +25,7 @@ void MCAsmMacroParameter::dump(raw_ostream &OS) const { if (!first) OS << ", "; first = false; - T.dump(); + OS << T.getString(); } } OS << "\n"; -- 2.7.4