diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-02-20 02:50:45 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-02-20 02:50:45 +0000 |
| commit | 420569be0454a3fb254dc98202080a8ec904fd2a (patch) | |
| tree | a4dd86ad26c103d64fe05139d5dd1eacbdd4949a /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 5d503b5deb29780e5bc4ac6e5f185ec708c3ad07 (diff) | |
| download | bcm5719-llvm-420569be0454a3fb254dc98202080a8ec904fd2a.tar.gz bcm5719-llvm-420569be0454a3fb254dc98202080a8ec904fd2a.zip | |
Add support for hashing attributes with DW_FORM_block. This required
passing down an AsmPrinter instance so we could compute the size of
the block which could be target specific. All of the test cases in
the unittest don't have any target specific data so we can use a NULL
AsmPrinter there. This also depends upon block data being added as
integers.
We can now hash the entire fission-cu.ll compile unit so turn the
flag on there with the hash value.
llvm-svn: 201752
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 70db96e43a1..9428fea7e14 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1007,7 +1007,7 @@ void DwarfDebug::finalizeModuleInfo() { // This should be a unique identifier when we want to build .dwp files. uint64_t ID = 0; if (GenerateCUHash) { - DIEHash CUHash; + DIEHash CUHash(Asm); ID = CUHash.computeCUSignature(*TheU->getUnitDie()); } TheU->addUInt(TheU->getUnitDie(), dwarf::DW_AT_GNU_dwo_id, |

