summaryrefslogtreecommitdiff
path: root/include/llvm/Object/ELFYAML.h
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-05-15 18:04:09 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-05-15 18:04:09 +0000
commit1564bf7dbe371c219f544fa45adcb6c249a9391c (patch)
tree4f49e29795770b241efe70c847878afea68f9f07 /include/llvm/Object/ELFYAML.h
parent650c53fe2a98baa2aa753438a6144d40d0f75fca (diff)
downloadllvm-1564bf7dbe371c219f544fa45adcb6c249a9391c.tar.gz
llvm-1564bf7dbe371c219f544fa45adcb6c249a9391c.tar.bz2
llvm-1564bf7dbe371c219f544fa45adcb6c249a9391c.tar.xz
[obj2yaml][ELF] Print relocation's offset as a hex number. Use a proper
types to hold relocation's offset and addend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/ELFYAML.h')
-rw-r--r--include/llvm/Object/ELFYAML.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/ELFYAML.h b/include/llvm/Object/ELFYAML.h
index 26bfaaed6d..5be7534557 100644
--- a/include/llvm/Object/ELFYAML.h
+++ b/include/llvm/Object/ELFYAML.h
@@ -89,8 +89,8 @@ struct RawContentSection : Section {
}
};
struct Relocation {
- uint32_t Offset;
- uint32_t Addend;
+ llvm::yaml::Hex64 Offset;
+ int64_t Addend;
ELF_REL Type;
StringRef Symbol;
};