summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2019-07-18 18:22:52 +0000
committerAmy Huang <akhuang@google.com>2019-07-18 18:22:52 +0000
commitf332fe642cc576b7c52c643b7024e6839407d34b (patch)
tree7844f4bda4c09b4d74e5f8ab105c6432a126909a /llvm/lib/CodeGen/MachineFunction.cpp
parent301c65a8e072e6346aa4bd38ca5dd54ecb41db3f (diff)
downloadbcm5719-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/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 4df5ce2dced..e4172db4f8c 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -823,13 +823,14 @@ try_next:;
return FilterID;
}
-void MachineFunction::addCodeViewHeapAllocSite(MachineInstr *I, MDNode *MD) {
+void MachineFunction::addCodeViewHeapAllocSite(MachineInstr *I,
+ const MDNode *MD) {
MCSymbol *BeginLabel = Ctx.createTempSymbol("heapallocsite", true);
MCSymbol *EndLabel = Ctx.createTempSymbol("heapallocsite", true);
I->setPreInstrSymbol(*this, BeginLabel);
I->setPostInstrSymbol(*this, EndLabel);
- DIType *DI = dyn_cast<DIType>(MD);
+ const DIType *DI = dyn_cast<DIType>(MD);
CodeViewHeapAllocSites.push_back(std::make_tuple(BeginLabel, EndLabel, DI));
}
OpenPOWER on IntegriCloud