summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-10-21 04:52:11 +0000
committerRui Ueyama <ruiu@google.com>2016-10-21 04:52:11 +0000
commit865d98657e776904dfa0cda7517e4e1717c98ce4 (patch)
tree9ee4ceef8567b4617af3fd90038a43373b80ae7a
parent2795627509076c4d3e2b96234f92ec5c00c722fa (diff)
downloadbcm5719-llvm-865d98657e776904dfa0cda7517e4e1717c98ce4.tar.gz
bcm5719-llvm-865d98657e776904dfa0cda7517e4e1717c98ce4.zip
Add comments.
llvm-svn: 284805
-rw-r--r--lld/ELF/Relocations.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lld/ELF/Relocations.h b/lld/ELF/Relocations.h
index 3e28ad62821..f2f17aa8080 100644
--- a/lld/ELF/Relocations.h
+++ b/lld/ELF/Relocations.h
@@ -19,6 +19,9 @@ class InputSectionData;
template <class ELFT> class InputSection;
template <class ELFT> class InputSectionBase;
+// List of target-independent relocation types. Relocations read
+// from files are converted to these types so that the main code
+// doesn't have to know about architecture-specific details.
enum RelExpr {
R_ABS,
R_GOT,
@@ -65,9 +68,10 @@ enum RelExpr {
R_TLSGD,
R_TLSGD_PC,
R_TLSLD,
- R_TLSLD_PC
+ R_TLSLD_PC,
};
+// Architecture-neutral representation of relocation.
struct Relocation {
RelExpr Expr;
uint32_t Type;
OpenPOWER on IntegriCloud