Eugene Zelenko
f7c046da8b
[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
5809e12d46
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
63fca85488
[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
d008c8f557
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
1e4b5ff3f3
Teach MCOperand::print how to print FPImm operands.
...
llvm-svn: 256163
2015-12-21 16:47:10 +00:00
Sean Silva
7bda0f64c2
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
9d2bea5968
[MC] Remove various unused MCAsmInfo parameters.
...
llvm-svn: 228244
2015-02-05 00:58:51 +00:00
Craig Topper
bd0a634bba
[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
fdeb41a212
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
3f0d6dd93f
Release build: guard dump functions with "ifndef NDEBUG"
...
No functional change.
llvm-svn: 163344
2012-09-06 19:55:56 +00:00
Owen Anderson
989d05dfdb
Add a dump() implementation for sub-instruction MCOperands.
...
llvm-svn: 148493
2012-01-19 19:32:20 +00:00
Owen Anderson
e54c4beb5a
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
84d4e5d0e2
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
f50c283a31
MC: Change MCInst::dump_pretty to not include a trailing newline.
...
llvm-svn: 104696
2010-05-26 15:18:13 +00:00
Daniel Dunbar
38fd48e06b
MCInst: Add ::dump_pretty.
...
llvm-svn: 99216
2010-03-22 21:49:34 +00:00
Chris Lattner
86287085ba
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
ed1e2c4453
Change errs() to dbgs().
...
llvm-svn: 92635
2010-01-05 01:28:22 +00:00
Chris Lattner
53cca8590c
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
d4f19950e3
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
fcb32716eb
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
ed9714d9eb
Add {MCInst,MCOperand}::{print,dump}
...
llvm-svn: 80231
2009-08-27 07:57:12 +00:00