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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								216e0c2ffe 
								
							 
						 
						
							
							
								
								Teach MCOperand::print how to print FPImm operands.  
							
							... 
							
							
							
							llvm-svn: 256163 
							
						 
						
							2015-12-21 16:47:10 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								0e1fe184c8 
								
							 
						 
						
							
							
								
								[MC] Remove various unused MCAsmInfo parameters.  
							
							... 
							
							
							
							llvm-svn: 228244 
							
						 
						
							2015-02-05 00:58:51 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								c3366ccecb 
								
							 
						 
						
							
							
								
								Release build: guard dump functions with "ifndef NDEBUG"  
							
							... 
							
							
							
							No functional change.
llvm-svn: 163344 
							
						 
						
							2012-09-06 19:55:56 +00:00  
				
					
						
							
							
								 
						
							
								4b53e188c1 
								
							 
						 
						
							
							
								
								Add a dump() implementation for sub-instruction MCOperands.  
							
							... 
							
							
							
							llvm-svn: 148493 
							
						 
						
							2012-01-19 19:32:20 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								3627af5da4 
								
							 
						 
						
							
							
								
								MC: Change MCInst::dump_pretty to not include a trailing newline.  
							
							... 
							
							
							
							llvm-svn: 104696 
							
						 
						
							2010-05-26 15:18:13 +00:00  
				
					
						
							
							
								 
						
							
								04047fbe14 
								
							 
						 
						
							
							
								
								MCInst: Add ::dump_pretty.  
							
							... 
							
							
							
							llvm-svn: 99216 
							
						 
						
							2010-03-22 21:49:34 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								7b42d7067e 
								
							 
						 
						
							
							
								
								Change errs() to dbgs().  
							
							... 
							
							
							
							llvm-svn: 92635 
							
						 
						
							2010-01-05 01:28:22 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								212b6d8a57 
								
							 
						 
						
							
							
								
								Add {MCInst,MCOperand}::{print,dump}  
							
							... 
							
							
							
							llvm-svn: 80231 
							
						 
						
							2009-08-27 07:57:12 +00:00