aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/CodeGen/MachOWriter.cpp4
-rw-r--r--lib/Target/PowerPC/PPCMachOWriterInfo.h7
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp
index 70fe79bf68..bc54728f58 100644
--- a/lib/CodeGen/MachOWriter.cpp
+++ b/lib/CodeGen/MachOWriter.cpp
@@ -461,8 +461,8 @@ void MachOWriter::EmitHeaderAndLoadCommands() {
OutputBuffer FHOut(FH, is64Bit, isLittleEndian);
FHOut.outword(Header.magic);
- FHOut.outword(TM.getMachOWriterInfo()->CPUType);
- FHOut.outword(TM.getMachOWriterInfo()->CPUSubType);
+ FHOut.outword(TM.getMachOWriterInfo()->getCPUType());
+ FHOut.outword(TM.getMachOWriterInfo()->getCPUSubType());
FHOut.outword(Header.filetype);
FHOut.outword(Header.ncmds);
FHOut.outword(Header.sizeofcmds);
diff --git a/lib/Target/PowerPC/PPCMachOWriterInfo.h b/lib/Target/PowerPC/PPCMachOWriterInfo.h
index af47833d4c..1536555949 100644
--- a/lib/Target/PowerPC/PPCMachOWriterInfo.h
+++ b/lib/Target/PowerPC/PPCMachOWriterInfo.h
@@ -21,13 +21,10 @@ namespace llvm {
// Forward declarations
class PPCTargetMachine;
- struct PPCMachOWriterInfo : public TargetMachOWriterInfo {
+ class PPCMachOWriterInfo : public TargetMachOWriterInfo {
+ public:
PPCMachOWriterInfo(const PPCTargetMachine &TM);
virtual ~PPCMachOWriterInfo() {}
-
- virtual const char *getPassName() const {
- return "PowerPC Mach-O Writer";
- }
};
} // end llvm namespace