X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FMC%2FMCInst.cpp;h=d7b80f589057e6d34e18df4e5cdf007bcf2707b9;hb=dca126522d7c13d8f4e3a42dc191250bd567550d;hp=e96010bd5c860dc898d453436318242be244ce3c;hpb=cc77eece74c8db09acc2af425e7e6c88a5bb30d1;p=oota-llvm.git diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp index e96010bd5c8..d7b80f58905 100644 --- a/lib/MC/MCInst.cpp +++ b/lib/MC/MCInst.cpp @@ -32,9 +32,9 @@ void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << ">"; } -#ifndef NDEBUG +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MCOperand::dump() const { - print(dbgs(), 0); + print(dbgs(), nullptr); dbgs() << "\n"; } #endif @@ -64,9 +64,9 @@ void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI, OS << ">"; } -#ifndef NDEBUG +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MCInst::dump() const { - print(dbgs(), 0); + print(dbgs(), nullptr); dbgs() << "\n"; } #endif