From 3ad660a5155108208fbd3483e37f199b52c1eb27 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 29 Mar 2014 19:21:20 +0000 Subject: 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 --- llvm/lib/MC/MCLinkerOptimizationHint.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib/MC/MCLinkerOptimizationHint.cpp') 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 -- cgit v1.2.3