mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
MC/Mach-O: Mark absolute variable's appropriately, and add Mach-O support for
writing them. - <rdar://problem/7885351> integrated assembler broken for i386 objc code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -44,6 +44,10 @@ void MCSymbol::setVariableValue(const MCExpr *Value) {
|
||||
assert((isUndefined() || (isAbsolute() && isa<MCConstantExpr>(Value))) &&
|
||||
"Invalid redefinition!");
|
||||
this->Value = Value;
|
||||
|
||||
// Mark the variable as absolute as appropriate.
|
||||
if (isa<MCConstantExpr>(Value))
|
||||
setAbsolute();
|
||||
}
|
||||
|
||||
void MCSymbol::print(raw_ostream &OS) const {
|
||||
|
Reference in New Issue
Block a user