summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-06-11 01:19:03 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-06-11 01:19:03 +0000
commit8076cab0ceef4db0fc9aadd18c6c03ab8ae0a210 (patch)
treec6cb72a2104c7e00f43dbb3407fa728804a10f6c /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent195f04afeb3b1ee7c8db2370402a2cac7efd18e8 (diff)
downloadbcm5719-llvm-8076cab0ceef4db0fc9aadd18c6c03ab8ae0a210.tar.gz
bcm5719-llvm-8076cab0ceef4db0fc9aadd18c6c03ab8ae0a210.zip
CodeGen: refactor DwarfException
DwarfException served as a base class for exception handling directive emission. However, this is also used by other exception models (e.g. Win64EH). Rename this class to EHStreamer and split it out of DwarfException.h. NFC. Use the opportunity to fix up some of the documentation comments to match current LLVM style. Also rename some functions to conform better with current LLVM coding style. llvm-svn: 210622
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 67b57fa2b4c..996dc2122f4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -233,23 +233,23 @@ bool AsmPrinter::doInitialization(Module &M) {
}
}
- DwarfException *DE = nullptr;
+ EHStreamer *ES = nullptr;
switch (MAI->getExceptionHandlingType()) {
case ExceptionHandling::None:
break;
case ExceptionHandling::SjLj:
case ExceptionHandling::DwarfCFI:
- DE = new DwarfCFIException(this);
+ ES = new DwarfCFIException(this);
break;
case ExceptionHandling::ARM:
- DE = new ARMException(this);
+ ES = new ARMException(this);
break;
case ExceptionHandling::Win64:
- DE = new Win64Exception(this);
+ ES = new Win64Exception(this);
break;
}
- if (DE)
- Handlers.push_back(HandlerInfo(DE, EHTimerName, DWARFGroupName));
+ if (ES)
+ Handlers.push_back(HandlerInfo(ES, EHTimerName, DWARFGroupName));
return false;
}
OpenPOWER on IntegriCloud