diff options
author | Quentin Colombet <qcolombet@apple.com> | 2014-04-02 01:02:28 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2014-04-02 01:02:28 +0000 |
commit | 3c2b13b25825d0e8cd798e2e1e78b31f2f516d32 (patch) | |
tree | 21f2afe69cf494417301998111ca7779fd2dc0c2 /llvm/lib/MC/MCLinkerOptimizationHint.cpp | |
parent | 5e8edbac4f55d4ef51e60aeff0a83b1d5e47b5c2 (diff) | |
download | bcm5719-llvm-3c2b13b25825d0e8cd798e2e1e78b31f2f516d32.tar.gz bcm5719-llvm-3c2b13b25825d0e8cd798e2e1e78b31f2f516d32.zip |
[ARM64][CollectLOH] Add some comments to explain how the LOHs
framework works (for the compiler part), since the design
document is not available.
llvm-svn: 205379
Diffstat (limited to 'llvm/lib/MC/MCLinkerOptimizationHint.cpp')
-rw-r--r-- | llvm/lib/MC/MCLinkerOptimizationHint.cpp | 8 |
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 { |