aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorShengchen Kan <shengchen.kan@intel.com>2020-03-16 16:52:31 +0800
committerShengchen Kan <shengchen.kan@intel.com>2020-03-16 17:13:14 +0800
commitb1a7a245ec24ba3a1bc482897a8f735785ea5983 (patch)
treecc2db4c3d2a19bdc99f652cd050f6c8af8b2b5ef /llvm/lib/MC/MCObjectStreamer.cpp
parenta2923b2a1e4536dd14e93bed5c1306e0e54d5304 (diff)
downloadllvm-b1a7a245ec24ba3a1bc482897a8f735785ea5983.zip
llvm-b1a7a245ec24ba3a1bc482897a8f735785ea5983.tar.gz
llvm-b1a7a245ec24ba3a1bc482897a8f735785ea5983.tar.bz2
[NFC][MC] Rename alignBranches* to emitInstruction*
alignBranches is X86 specific, change the name in a more general one since other target can do some state chang before and after emitting the instruction.
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index a36cdc4..70c9201 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -367,9 +367,9 @@ bool MCObjectStreamer::mayHaveInstructions(MCSection &Sec) const {
void MCObjectStreamer::emitInstruction(const MCInst &Inst,
const MCSubtargetInfo &STI) {
- getAssembler().getBackend().alignBranchesBegin(*this, Inst);
+ getAssembler().getBackend().emitInstructionBegin(*this, Inst);
emitInstructionImpl(Inst, STI);
- getAssembler().getBackend().alignBranchesEnd(*this, Inst);
+ getAssembler().getBackend().emitInstructionEnd(*this, Inst);
}
void MCObjectStreamer::emitInstructionImpl(const MCInst &Inst,