projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move common symbol related information from MCSectionData to MCSymbol.
[oota-llvm.git]
/
lib
/
MC
/
MachObjectWriter.cpp
diff --git
a/lib/MC/MachObjectWriter.cpp
b/lib/MC/MachObjectWriter.cpp
index bbdb8ea0b6cc04fbf1ebc85c67d36aaee90510a7..6d8e7ae147fb5f0e97748cfcfa1c6e1b7575b74c 100644
(file)
--- a/
lib/MC/MachObjectWriter.cpp
+++ b/
lib/MC/MachObjectWriter.cpp
@@
-373,13
+373,13
@@
void MachObjectWriter::WriteNlist(MachSymbolData &MSD,
Address = AliaseeInfo->StringIndex;
else if (Symbol->isDefined())
Address = getSymbolAddress(OrigSymbol, Layout);
Address = AliaseeInfo->StringIndex;
else if (Symbol->isDefined())
Address = getSymbolAddress(OrigSymbol, Layout);
- else if (
Data.
isCommon()) {
+ else if (
Symbol->
isCommon()) {
// Common symbols are encoded with the size in the address
// field, and their alignment in the flags.
// Common symbols are encoded with the size in the address
// field, and their alignment in the flags.
- Address =
Data.
getCommonSize();
+ Address =
Symbol->
getCommonSize();
// Common alignment is packed into the 'desc' bits.
// Common alignment is packed into the 'desc' bits.
- if (unsigned Align =
Data.
getCommonAlignment()) {
+ if (unsigned Align =
Symbol->
getCommonAlignment()) {
unsigned Log2Size = Log2_32(Align);
assert((1U << Log2Size) == Align && "Invalid 'common' alignment!");
if (Log2Size > 15)
unsigned Log2Size = Log2_32(Align);
assert((1U << Log2Size) == Align && "Invalid 'common' alignment!");
if (Log2Size > 15)