aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-01-24 07:13:56 +0000
committerBill Wendling <isanbard@gmail.com>2007-01-24 07:13:56 +0000
commit2b7218218faa02d9ece90f2ae6e009d7c55534df (patch)
tree9d5cb82349d5e844c95dc917eb0ced415ab5b7dd /include/llvm/CodeGen
parentde268f7dcf8a650afde162b84608ed434fb10613 (diff)
Make ivars private and use getters. Have the MachOWriter return "Mach-O
Writer" for the pass name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachOWriter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachOWriter.h b/include/llvm/CodeGen/MachOWriter.h
index dd98b950d5..5ec4f50331 100644
--- a/include/llvm/CodeGen/MachOWriter.h
+++ b/include/llvm/CodeGen/MachOWriter.h
@@ -85,11 +85,13 @@ namespace llvm {
MachineCodeEmitter &getMachineCodeEmitter() const {
return *(MachineCodeEmitter*)MCE;
}
+ virtual ~MachOWriter();
- ~MachOWriter();
+ virtual const char *getPassName() const {
+ return "Mach-O Writer";
+ }
typedef std::vector<unsigned char> DataBuffer;
-
protected:
MachOWriter(std::ostream &O, TargetMachine &TM);