X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FMC%2FMCLinkerOptimizationHint.cpp;h=3f8d6203f012ae4dd916cda5a2694b79bf2b88bd;hb=b9a99d459349148d3ac349066e143f17f185b43c;hp=628a6156fd8c61cfdadecc6e44dde3e8dd500a90;hpb=1330ee3189a3a29ce89fc2648e6a0d98ba36f0d4;p=oota-llvm.git diff --git a/lib/MC/MCLinkerOptimizationHint.cpp b/lib/MC/MCLinkerOptimizationHint.cpp index 628a6156fd8..3f8d6203f01 100644 --- a/lib/MC/MCLinkerOptimizationHint.cpp +++ b/lib/MC/MCLinkerOptimizationHint.cpp @@ -14,8 +14,14 @@ using namespace llvm; -namespace llvm { -template<> +// Each LOH is composed by, in this order (each field is encoded using ULEB128): +// - Its kind. +// - Its number of arguments (let say N). +// - Its arg1. +// - ... +// - Its argN. +// to are absolute addresses in the object file, i.e., +// relative addresses from the beginning of the object file. void MCLOHDirective::Emit_impl(raw_ostream &OutStream, const MachObjectWriter &ObjWriter, const MCAsmLayout &Layout) const { @@ -27,4 +33,3 @@ void MCLOHDirective::Emit_impl(raw_ostream &OutStream, encodeULEB128(ObjWriter.getSymbolAddress(&Asm.getSymbolData(**It), Layout), OutStream); } -} // end namespace llvm