summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-12-03 15:10:23 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-12-03 15:10:23 +0000
commit1cd1444449cb68e2091e8f36785403288ebd3326 (patch)
treea4cca876cfed14647a1e99547d09390f437db451 /llvm/lib/CodeGen/AsmPrinter/DwarfException.h
parenta6d47ae71cf70c2b16eba662be74902b31b0f13d (diff)
downloadbcm5719-llvm-1cd1444449cb68e2091e8f36785403288ebd3326.tar.gz
bcm5719-llvm-1cd1444449cb68e2091e8f36785403288ebd3326.zip
Reland 196270 "Generalize debug info / EH emission in AsmPrinter"
Addressing the existense AMDGPUAsmPrinter and other subclasses of AsmPrinter llvm-svn: 196288
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
index 16b68a73d6e..5a2ee9e490a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
@@ -14,6 +14,7 @@
#ifndef LLVM_CODEGEN_ASMPRINTER_DWARFEXCEPTION_H
#define LLVM_CODEGEN_ASMPRINTER_DWARFEXCEPTION_H
+#include "AsmPrinterHandler.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include <vector>
@@ -35,7 +36,7 @@ class AsmPrinter;
//===----------------------------------------------------------------------===//
/// DwarfException - Emits Dwarf exception handling directives.
///
-class DwarfException {
+class DwarfException : public AsmPrinterHandler {
protected:
/// Asm - Target of Dwarf emission.
AsmPrinter *Asm;
@@ -139,7 +140,12 @@ public:
virtual void beginFunction(const MachineFunction *MF);
/// endFunction - Gather and emit post-function exception information.
- virtual void endFunction();
+ virtual void endFunction(const MachineFunction *);
+
+ // We don't need these.
+ virtual void setSymbolSize(const MCSymbol *Sym, uint64_t Size) {}
+ virtual void beginInstruction(const MachineInstr *MI) {}
+ virtual void endInstruction() {}
};
class DwarfCFIException : public DwarfException {
@@ -173,7 +179,7 @@ public:
virtual void beginFunction(const MachineFunction *MF);
/// endFunction - Gather and emit post-function exception information.
- virtual void endFunction();
+ virtual void endFunction(const MachineFunction *);
};
class ARMException : public DwarfException {
@@ -196,7 +202,7 @@ public:
virtual void beginFunction(const MachineFunction *MF);
/// endFunction - Gather and emit post-function exception information.
- virtual void endFunction();
+ virtual void endFunction(const MachineFunction *);
};
class Win64Exception : public DwarfException {
@@ -228,7 +234,7 @@ public:
virtual void beginFunction(const MachineFunction *MF);
/// endFunction - Gather and emit post-function exception information.
- virtual void endFunction();
+ virtual void endFunction(const MachineFunction *);
};
} // End of namespace llvm
OpenPOWER on IntegriCloud