summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-12 22:56:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-12 22:56:23 +0000
commitb76df22a2e7a9c41c533776f5a410af993db70f5 (patch)
tree55945103f505dd30db37552475da8f8bd1920bdb /llvm/lib/MC/MCAssembler.cpp
parent4405ffc6882e1566d6865b991bb45ec86b720d12 (diff)
downloadbcm5719-llvm-b76df22a2e7a9c41c533776f5a410af993db70f5.tar.gz
bcm5719-llvm-b76df22a2e7a9c41c533776f5a410af993db70f5.zip
MC: Move MCAlignFragment::EmitNops value out of the constructor.
llvm-svn: 103665
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index d5ff94996fb..0bab34e4b21 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -498,7 +498,7 @@ static void WriteFragmentData(const MCAssembler &Asm, const MCAsmLayout &Layout,
// the Count bytes. Then if that did not fill any bytes or there are any
// 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.getEmitNops()) {
+ if (AF.hasEmitNops()) {
if (!Asm.getBackend().WriteNopData(Count, OW))
report_fatal_error("unable to write nop sequence of " +
Twine(Count) + " bytes");
OpenPOWER on IntegriCloud