Aaron Ballman
615eb47035
Reverting r315590; it did not include changes for llvm-tblgen, which is causing link errors for several people.
...
Error LNK2019 unresolved external symbol "public: void __cdecl `anonymous namespace'::MatchableInfo::dump(void)const " (?dump@MatchableInfo@?A0xf4f1c304@@QEBAXXZ) referenced in function "public: void __cdecl `anonymous namespace'::AsmMatcherEmitter::run(class llvm::raw_ostream &)" (?run@AsmMatcherEmitter@?A0xf4f1c304@@QEAAXAEAVraw_ostream@llvm@@@Z) llvm-tblgen D:\llvm\2017\utils\TableGen\AsmMatcherEmitter.obj 1
llvm-svn: 315854
2017-10-15 14:32:27 +00:00
Don Hinton
3e0199f7eb
[dump] Remove NDEBUG from test to enable dump methods [NFC]
...
Summary:
Add LLVM_FORCE_ENABLE_DUMP cmake option, and use it along with
LLVM_ENABLE_ASSERTIONS to set LLVM_ENABLE_DUMP.
Remove NDEBUG and only use LLVM_ENABLE_DUMP to enable dump methods.
Move definition of LLVM_ENABLE_DUMP from config.h to llvm-config.h so
it'll be picked up by public headers.
Differential Revision: https://reviews.llvm.org/D38406
llvm-svn: 315590
2017-10-12 16:16:06 +00:00
Eugene Zelenko
d3a6c897ba
[MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
...
llvm-svn: 294813
2017-02-11 00:27:28 +00:00
Matthias Braun
8c209aa877
Cleanup dump() functions.
...
We had various variants of defining dump() functions in LLVM. Normalize
them (this should just consistently implement the things discussed in
http://lists.llvm.org/pipermail/cfe-dev/2014-January/034323.html
For reference:
- Public headers should just declare the dump() method but not use
LLVM_DUMP_METHOD or #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
- The definition of a dump method should look like this:
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void MyClass::dump() {
// print stuff to dbgs()...
}
#endif
llvm-svn: 293359
2017-01-28 02:02:38 +00:00
Davide Italiano
80d379f228
[MC] Remove guard(s). NFCI.
...
All the methods are already marked with
LLVM_DUMP_METHOD.
llvm-svn: 279428
2016-08-22 11:55:22 +00:00
Yaron Keren
eb2a25467e
Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment.
...
clang part in r259232, this is the LLVM part of the patch.
llvm-svn: 259240
2016-01-29 20:50:44 +00:00
Dan Gohman
216e0c2ffe
Teach MCOperand::print how to print FPImm operands.
...
llvm-svn: 256163
2015-12-21 16:47:10 +00:00
Sean Silva
32f24c49d2
Fixup.
...
Didn't see these calls in my release build locally when testing.
llvm-svn: 228254
2015-02-05 01:13:47 +00:00
Sean Silva
0e1fe184c8
[MC] Remove various unused MCAsmInfo parameters.
...
llvm-svn: 228244
2015-02-05 00:58:51 +00:00
Craig Topper
bb694de649
[C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr.
...
llvm-svn: 206129
2014-04-13 04:57:38 +00:00
Manman Ren
49d684e1e2
Release build: guard dump functions with
...
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)"
No functional change. Update r163344.
llvm-svn: 163679
2012-09-12 05:06:18 +00:00
Manman Ren
c3366ccecb
Release build: guard dump functions with "ifndef NDEBUG"
...
No functional change.
llvm-svn: 163344
2012-09-06 19:55:56 +00:00
Owen Anderson
4b53e188c1
Add a dump() implementation for sub-instruction MCOperands.
...
llvm-svn: 148493
2012-01-19 19:32:20 +00:00
Owen Anderson
a0c3b97221
Don't attach annotations to MCInst's. Instead, have the disassembler return, and the printer accept, an annotation string which can be passed through if the client cares about annotations.
...
llvm-svn: 139876
2011-09-15 23:38:46 +00:00
Owen Anderson
d1814791ad
Add support for stored annotations to MCInst, and provide facilities for MC-based InstPrinters to print them out. Enhance the ARM and X86 InstPrinter's to do so in verbose mode.
...
llvm-svn: 139820
2011-09-15 18:36:29 +00:00
Daniel Dunbar
3627af5da4
MC: Change MCInst::dump_pretty to not include a trailing newline.
...
llvm-svn: 104696
2010-05-26 15:18:13 +00:00
Daniel Dunbar
04047fbe14
MCInst: Add ::dump_pretty.
...
llvm-svn: 99216
2010-03-22 21:49:34 +00:00
Chris Lattner
c8f7717808
remove the MAI argument to MCExpr::print and switch overthing to use << when printing them.
...
llvm-svn: 93699
2010-01-18 00:37:40 +00:00
David Greene
7b42d7067e
Change errs() to dbgs().
...
llvm-svn: 92635
2010-01-05 01:28:22 +00:00
Chris Lattner
5090e6c4a7
eliminate the "MBBLabel" MCOperand type, and just use a MCSymbol for
...
MBB labels like everything else.
llvm-svn: 81628
2009-09-12 20:45:03 +00:00
Chris Lattner
f4366a3998
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.
llvm-svn: 80890
2009-09-03 05:46:51 +00:00
Daniel Dunbar
73da11ebda
llvm-mc: Switch MCInst to storing an MCExpr* instead of an MCValue.
...
Also, use MCInst::print instead of custom code in MCAsmPrinter.
llvm-svn: 80575
2009-08-31 08:08:38 +00:00
Daniel Dunbar
212b6d8a57
Add {MCInst,MCOperand}::{print,dump}
...
llvm-svn: 80231
2009-08-27 07:57:12 +00:00