diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-29 19:21:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-29 19:21:20 +0000 |
commit | 3ad660a5155108208fbd3483e37f199b52c1eb27 (patch) | |
tree | 9e21badca4d2e321533212eac3f7433072359e8f /llvm/lib/MC/MCLinkerOptimizationHint.cpp | |
parent | a332978b2ab53306acdef10858c7e954e605ab37 (diff) | |
download | bcm5719-llvm-3ad660a5155108208fbd3483e37f199b52c1eb27.tar.gz bcm5719-llvm-3ad660a5155108208fbd3483e37f199b52c1eb27.zip |
Detemplatize LOHDirective.
The ARM64 backend uses it only as a container to keep an MCLOHType and
Arguments around so give it its own little copy. The other functionality
isn't used and we had a crazy method specialization hack in place to
keep it working. Unfortunately that was incompatible with MSVC.
Also range-ify a couple of loops while at it.
llvm-svn: 205114
Diffstat (limited to 'llvm/lib/MC/MCLinkerOptimizationHint.cpp')
-rw-r--r-- | llvm/lib/MC/MCLinkerOptimizationHint.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCLinkerOptimizationHint.cpp b/llvm/lib/MC/MCLinkerOptimizationHint.cpp index 628a6156fd8..dceda68433e 100644 --- a/llvm/lib/MC/MCLinkerOptimizationHint.cpp +++ b/llvm/lib/MC/MCLinkerOptimizationHint.cpp @@ -14,8 +14,6 @@ using namespace llvm; -namespace llvm { -template<> void MCLOHDirective::Emit_impl(raw_ostream &OutStream, const MachObjectWriter &ObjWriter, const MCAsmLayout &Layout) const { @@ -27,4 +25,3 @@ void MCLOHDirective::Emit_impl(raw_ostream &OutStream, encodeULEB128(ObjWriter.getSymbolAddress(&Asm.getSymbolData(**It), Layout), OutStream); } -} // end namespace llvm |