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 /llvm/lib | |
| 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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |

