diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-01-18 18:52:16 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-01-18 18:52:16 +0000 |
commit | ec3433852dd11e8ff60c9610b4c84468e5935f2b (patch) | |
tree | 910feb6a19c8b42c30c77725496a338e976b9354 /lib/MC | |
parent | 160fee7349941ea8c6b350023d6ed0685840c9a2 (diff) | |
download | external_llvm-ec3433852dd11e8ff60c9610b4c84468e5935f2b.zip external_llvm-ec3433852dd11e8ff60c9610b4c84468e5935f2b.tar.gz external_llvm-ec3433852dd11e8ff60c9610b4c84468e5935f2b.tar.bz2 |
Tidy up. MCAsmBackend naming conventions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 10 | ||||
-rw-r--r-- | lib/MC/MCMachOStreamer.cpp | 2 | ||||
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index e3cfae8..d150941 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -405,7 +405,7 @@ static void WriteFragmentData(const MCAssembler &Asm, const MCAsmLayout &Layout, // bytes left to fill use the the Value and ValueSize to fill the rest. // If we are aligning with nops, ask that target to emit the right data. if (AF.hasEmitNops()) { - if (!Asm.getBackend().WriteNopData(Count, OW)) + if (!Asm.getBackend().writeNopData(Count, OW)) report_fatal_error("unable to write nop sequence of " + Twine(Count) + " bytes"); break; @@ -615,7 +615,7 @@ void MCAssembler::Finish() { ie3 = DF->fixup_end(); it3 != ie3; ++it3) { MCFixup &Fixup = *it3; uint64_t FixedValue = handleFixup(Layout, *DF, Fixup); - getBackend().ApplyFixup(Fixup, DF->getContents().data(), + getBackend().applyFixup(Fixup, DF->getContents().data(), DF->getContents().size(), FixedValue); } } @@ -625,7 +625,7 @@ void MCAssembler::Finish() { ie3 = IF->fixup_end(); it3 != ie3; ++it3) { MCFixup &Fixup = *it3; uint64_t FixedValue = handleFixup(Layout, *IF, Fixup); - getBackend().ApplyFixup(Fixup, IF->getCode().data(), + getBackend().applyFixup(Fixup, IF->getCode().data(), IF->getCode().size(), FixedValue); } } @@ -658,7 +658,7 @@ bool MCAssembler::fragmentNeedsRelaxation(const MCInstFragment *IF, // If this inst doesn't ever need relaxation, ignore it. This occurs when we // are intentionally pushing out inst fragments, or because we relaxed a // previous instruction to one that doesn't need relaxation. - if (!getBackend().MayNeedRelaxation(IF->getInst())) + if (!getBackend().mayNeedRelaxation(IF->getInst())) return false; for (MCInstFragment::const_fixup_iterator it = IF->fixup_begin(), @@ -682,7 +682,7 @@ bool MCAssembler::relaxInstruction(MCAsmLayout &Layout, // Relax the fragment. MCInst Relaxed; - getBackend().RelaxInstruction(IF.getInst(), Relaxed); + getBackend().relaxInstruction(IF.getInst(), Relaxed); // Encode the new instruction. // diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index 09a57cf..bf65976 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -140,7 +140,7 @@ void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) { void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { // Let the target do whatever target specific stuff it needs to do. - getAssembler().getBackend().HandleAssemblerFlag(Flag); + getAssembler().getBackend().handleAssemblerFlag(Flag); // Do any generic stuff we need to do. switch (Flag) { case MCAF_SyntaxUnified: return; // no-op here. diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index 6159e0e..82a13d7 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -172,7 +172,7 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst) { MCLineEntry::Make(this, getCurrentSection()); // If this instruction doesn't need relaxation, just emit it as data. - if (!getAssembler().getBackend().MayNeedRelaxation(Inst)) { + if (!getAssembler().getBackend().mayNeedRelaxation(Inst)) { EmitInstToData(Inst); return; } @@ -181,9 +181,9 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst) { // possible and emit it as data. if (getAssembler().getRelaxAll()) { MCInst Relaxed; - getAssembler().getBackend().RelaxInstruction(Inst, Relaxed); - while (getAssembler().getBackend().MayNeedRelaxation(Relaxed)) - getAssembler().getBackend().RelaxInstruction(Relaxed, Relaxed); + getAssembler().getBackend().relaxInstruction(Inst, Relaxed); + while (getAssembler().getBackend().mayNeedRelaxation(Relaxed)) + getAssembler().getBackend().relaxInstruction(Relaxed, Relaxed); EmitInstToData(Relaxed); return; } |