From ce40984980d8cc39e903382478c111d967aed337 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 17 Jan 2010 21:43:43 +0000 Subject: now that MCSymbol::print doesn't use it's MAI argument, we can remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93695 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCValue.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/MC/MCValue.cpp') diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index c1222ec..043a49d 100644 --- a/lib/MC/MCValue.cpp +++ b/lib/MC/MCValue.cpp @@ -19,12 +19,10 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const { return; } - getSymA()->print(OS, MAI); + OS << *getSymA(); - if (getSymB()) { - OS << " - "; - getSymB()->print(OS, MAI); - } + if (getSymB()) + OS << " - " << *getSymB(); if (getConstant()) OS << " + " << getConstant(); -- cgit v1.1