[fuzzer] add -runs=N to limit the number of runs per session. Also, make sure we...
[oota-llvm.git] / lib / MC / MCLinkerOptimizationHint.cpp
index dceda68433eb34a7ea244d170fcec15513c5fbeb..7739878dc31cfbd9ba1ebc3d357451357e902247 100644 (file)
@@ -9,11 +9,19 @@
 
 #include "llvm/MC/MCLinkerOptimizationHint.h"
 #include "llvm/MC/MCAsmLayout.h"
-#include "llvm/Support/LEB128.h"
 #include "llvm/MC/MCStreamer.h"
+#include "llvm/Support/LEB128.h"
 
 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 {