Remove an easy use of EmitRawText from PPC.

This makes lib/Target/PowerPC EmitRawText free.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-01-25 02:35:56 +00:00
parent 8fe060da52
commit f961273b79
4 changed files with 19 additions and 7 deletions

View File

@@ -120,6 +120,9 @@ public:
OS << S.getName();
OS << '\n';
}
virtual void emitMachine(StringRef CPU) {
OS << "\t.machine " << CPU << '\n';
}
};
class PPCTargetELFStreamer : public PPCTargetStreamer {
@@ -127,6 +130,10 @@ class PPCTargetELFStreamer : public PPCTargetStreamer {
// Creates a R_PPC64_TOC relocation
Streamer->EmitSymbolValue(&S, 8);
}
virtual void emitMachine(StringRef CPU) {
// FIXME: Is there anything to do in here or does this directive only
// limit the parser?
}
};
}