diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-17 12:54:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-17 12:54:04 +0000 |
commit | ba41539548edc7747f09c66d5c337c4b1eb3750e (patch) | |
tree | 23d9574063f6e2b190629c6fda3c1fbcb0b95895 /llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp | |
parent | 914b947e9bef4b6565e27930e903d2ed60981559 (diff) | |
download | bcm5719-llvm-ba41539548edc7747f09c66d5c337c4b1eb3750e.tar.gz bcm5719-llvm-ba41539548edc7747f09c66d5c337c4b1eb3750e.zip |
Replace a use of GetTempSymbol with createTempSymbol.
This is cleaner and avoids a crash in a corner case.
llvm-svn: 232471
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp b/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp index 356a35135d1..abf16f79a42 100644 --- a/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp @@ -48,9 +48,9 @@ Win64Exception::~Win64Exception() {} void Win64Exception::endModule() { } -/// beginFunction - Gather pre-function exception information. Assumes it's -/// being emitted immediately after the function entry point. void Win64Exception::beginFunction(const MachineFunction *MF) { + EHStreamer::beginFunction(MF); + shouldEmitMoves = shouldEmitPersonality = shouldEmitLSDA = false; // If any landing pads survive, we need an EH table. |