diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-03 18:28:40 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-03 18:28:40 +0000 |
| commit | 28de224002a42c372f18dd6d1672b4bbe8f5ea0d (patch) | |
| tree | 5f19329719142c9dcd4788ad18bdd3542fd7c12e | |
| parent | 93ea954e6da82d3e92cb32d515df7c4588b5cd67 (diff) | |
| download | bcm5719-llvm-28de224002a42c372f18dd6d1672b4bbe8f5ea0d.tar.gz bcm5719-llvm-28de224002a42c372f18dd6d1672b4bbe8f5ea0d.zip | |
Move registerSection out of line and reduce #includes. NFC.
llvm-svn: 249241
| -rw-r--r-- | llvm/include/llvm/MC/MCAssembler.h | 9 | ||||
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h index 1a1008c8928..43977a35985 100644 --- a/llvm/include/llvm/MC/MCAssembler.h +++ b/llvm/include/llvm/MC/MCAssembler.h @@ -22,7 +22,6 @@ #include "llvm/MC/MCFixup.h" #include "llvm/MC/MCInst.h" #include "llvm/MC/MCLinkerOptimizationHint.h" -#include "llvm/MC/MCSection.h" #include "llvm/MC/MCSubtargetInfo.h" #include "llvm/Support/Casting.h" #include "llvm/Support/DataTypes.h" @@ -860,13 +859,7 @@ public: /// \name Backend Data Access /// @{ - bool registerSection(MCSection &Section) { - if (Section.isRegistered()) - return false; - Sections.push_back(&Section); - Section.setIsRegistered(true); - return true; - } + bool registerSection(MCSection &Section); void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr); diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 79854596bc6..d93bf44928d 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -357,6 +357,14 @@ void MCAssembler::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 { if (ThumbFuncs.count(Symbol)) return true; |

