MC Win64: Put unwind info for COMDAT code into the same COMDAT group
[oota-llvm.git] / lib / MC / MCLinkerOptimizationHint.cpp
index 628a6156fd8c61cfdadecc6e44dde3e8dd500a90..3f8d6203f012ae4dd916cda5a2694b79bf2b88bd 100644 (file)
 
 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.
+// <arg1> to <argN> 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