forked from OSchip/llvm-project
				
			Move registerSection out of line and reduce #includes. NFC.
llvm-svn: 249241
This commit is contained in:
		
							parent
							
								
									93ea954e6d
								
							
						
					
					
						commit
						28de224002
					
				| 
						 | 
					@ -22,7 +22,6 @@
 | 
				
			||||||
#include "llvm/MC/MCFixup.h"
 | 
					#include "llvm/MC/MCFixup.h"
 | 
				
			||||||
#include "llvm/MC/MCInst.h"
 | 
					#include "llvm/MC/MCInst.h"
 | 
				
			||||||
#include "llvm/MC/MCLinkerOptimizationHint.h"
 | 
					#include "llvm/MC/MCLinkerOptimizationHint.h"
 | 
				
			||||||
#include "llvm/MC/MCSection.h"
 | 
					 | 
				
			||||||
#include "llvm/MC/MCSubtargetInfo.h"
 | 
					#include "llvm/MC/MCSubtargetInfo.h"
 | 
				
			||||||
#include "llvm/Support/Casting.h"
 | 
					#include "llvm/Support/Casting.h"
 | 
				
			||||||
#include "llvm/Support/DataTypes.h"
 | 
					#include "llvm/Support/DataTypes.h"
 | 
				
			||||||
| 
						 | 
					@ -860,13 +859,7 @@ public:
 | 
				
			||||||
  /// \name Backend Data Access
 | 
					  /// \name Backend Data Access
 | 
				
			||||||
  /// @{
 | 
					  /// @{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  bool registerSection(MCSection &Section) {
 | 
					  bool registerSection(MCSection &Section);
 | 
				
			||||||
    if (Section.isRegistered())
 | 
					 | 
				
			||||||
      return false;
 | 
					 | 
				
			||||||
    Sections.push_back(&Section);
 | 
					 | 
				
			||||||
    Section.setIsRegistered(true);
 | 
					 | 
				
			||||||
    return true;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr);
 | 
					  void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -357,6 +357,14 @@ void MCAssembler::reset() {
 | 
				
			||||||
  getLOHContainer().reset();
 | 
					  getLOHContainer().reset();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool MCAssembler::registerSection(MCSection &Section) {
 | 
				
			||||||
 | 
					  if (Section.isRegistered())
 | 
				
			||||||
 | 
					    return false;
 | 
				
			||||||
 | 
					  Sections.push_back(&Section);
 | 
				
			||||||
 | 
					  Section.setIsRegistered(true);
 | 
				
			||||||
 | 
					  return true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool MCAssembler::isThumbFunc(const MCSymbol *Symbol) const {
 | 
					bool MCAssembler::isThumbFunc(const MCSymbol *Symbol) const {
 | 
				
			||||||
  if (ThumbFuncs.count(Symbol))
 | 
					  if (ThumbFuncs.count(Symbol))
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue