diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-12-16 03:20:06 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-12-16 03:20:06 +0000 |
| commit | 0c9d9fdd81a248369c822025dea11ddd0884944c (patch) | |
| tree | 0732de3a40ff43349299cb306d47e68697b4f635 /llvm/lib/MC/MCAssembler.cpp | |
| parent | e4ec90e990e0d84282c79cae6e221a36b81d7665 (diff) | |
| download | bcm5719-llvm-0c9d9fdd81a248369c822025dea11ddd0884944c.tar.gz bcm5719-llvm-0c9d9fdd81a248369c822025dea11ddd0884944c.zip | |
MC: Move target specific fixup info descriptors to TargetAsmBackend instead of
the MCCodeEmitter, which seems like a better organization.
- Also, cleaned up some magic constants while in the area.
llvm-svn: 121953
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 3421c1dde8a..243975c2bc6 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -224,7 +224,7 @@ bool MCAssembler::EvaluateFixup(const MCObjectWriter &Writer, Value = Target.getConstant(); - bool IsPCRel = Emitter.getFixupKindInfo( + bool IsPCRel = Backend.getFixupKindInfo( Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel; bool IsResolved = true; bool IsThumb = false; @@ -248,7 +248,7 @@ bool MCAssembler::EvaluateFixup(const MCObjectWriter &Writer, if (IsResolved) IsResolved = Writer.IsFixupFullyResolved(*this, Target, IsPCRel, DF); - bool ShouldAlignPC = Emitter.getFixupKindInfo(Fixup.getKind()).Flags & + bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsAlignedDownTo32Bits; assert((ShouldAlignPC ? IsPCRel : true) && "FKF_IsAlignedDownTo32Bits is only allowed on PC-relative fixups!"); |

