summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCLinkerOptimizationHint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCLinkerOptimizationHint.cpp')
-rw-r--r--llvm/lib/MC/MCLinkerOptimizationHint.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCLinkerOptimizationHint.cpp b/llvm/lib/MC/MCLinkerOptimizationHint.cpp
index dceda68433e..3f8d6203f01 100644
--- a/llvm/lib/MC/MCLinkerOptimizationHint.cpp
+++ b/llvm/lib/MC/MCLinkerOptimizationHint.cpp
@@ -14,6 +14,14 @@
using namespace llvm;
+// 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 {
OpenPOWER on IntegriCloud