diff options
author | Amy Huang <akhuang@google.com> | 2019-07-18 18:22:52 +0000 |
---|---|---|
committer | Amy Huang <akhuang@google.com> | 2019-07-18 18:22:52 +0000 |
commit | f332fe642cc576b7c52c643b7024e6839407d34b (patch) | |
tree | 7844f4bda4c09b4d74e5f8ab105c6432a126909a /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 301c65a8e072e6346aa4bd38ca5dd54ecb41db3f (diff) | |
download | bcm5719-llvm-f332fe642cc576b7c52c643b7024e6839407d34b.tar.gz bcm5719-llvm-f332fe642cc576b7c52c643b7024e6839407d34b.zip |
[COFF] Change a variable type to be const in the HeapAllocSite map.
llvm-svn: 366479
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 932959c311f..b3dabca0a8a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1135,7 +1135,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV, if (!BeginLabel->isDefined() || !EndLabel->isDefined()) continue; - DIType *DITy = std::get<2>(HeapAllocSite); + const DIType *DITy = std::get<2>(HeapAllocSite); MCSymbol *HeapAllocEnd = beginSymbolRecord(SymbolKind::S_HEAPALLOCSITE); OS.AddComment("Call site offset"); OS.EmitCOFFSecRel32(BeginLabel, /*Offset=*/0); |