aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-06-23 00:09:43 +0000
committerBill Wendling <isanbard@gmail.com>2011-06-23 00:09:43 +0000
commit3f2ea825bdf8cbe002ac542a5bdd775bd30470c9 (patch)
treeefabdf17a52e2bcf9b338ad3125a20100c38d17f /lib/MC/MachObjectWriter.cpp
parentf2a58425cd2a288b1d9fc3d2484ac774d361a0d7 (diff)
downloadexternal_llvm-3f2ea825bdf8cbe002ac542a5bdd775bd30470c9.zip
external_llvm-3f2ea825bdf8cbe002ac542a5bdd775bd30470c9.tar.gz
external_llvm-3f2ea825bdf8cbe002ac542a5bdd775bd30470c9.tar.bz2
80-column violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r--lib/MC/MachObjectWriter.cpp29
1 files changed, 17 insertions, 12 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index 1819c40..0d80514 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/lib/MC/MachObjectWriter.cpp
@@ -490,7 +490,8 @@ void MachObjectWriter::WriteDysymtabLoadCommand(uint32_t FirstLocalSymbol,
assert(OS.tell() - Start == macho::DysymtabLoadCommandSize);
}
-void MachObjectWriter::WriteNlist(MachSymbolData &MSD, const MCAsmLayout &Layout) {
+void MachObjectWriter::WriteNlist(MachSymbolData &MSD,
+ const MCAsmLayout &Layout) {
MCSymbolData &Data = *MSD.SymbolData;
const MCSymbol &Symbol = Data.getSymbol();
uint8_t Type = 0;
@@ -1058,7 +1059,8 @@ void MachObjectWriter::RecordTLVPRelocation(const MCAssembler &Asm,
Relocations[Fragment->getParent()].push_back(MRE);
}
-bool MachObjectWriter::getARMFixupKindMachOInfo(unsigned Kind, unsigned &RelocType,
+bool MachObjectWriter::getARMFixupKindMachOInfo(unsigned Kind,
+ unsigned &RelocType,
unsigned &Log2Size) {
RelocType = unsigned(macho::RIT_Vanilla);
Log2Size = ~0U;
@@ -1379,10 +1381,11 @@ void MachObjectWriter::BindIndirectSymbols(MCAssembler &Asm) {
/// \param StringTable [out] - The string table data.
/// \param StringIndexMap [out] - Map from symbol names to offsets in the
/// string table.
-void MachObjectWriter::ComputeSymbolTable(MCAssembler &Asm, SmallString<256> &StringTable,
- std::vector<MachSymbolData> &LocalSymbolData,
- std::vector<MachSymbolData> &ExternalSymbolData,
- std::vector<MachSymbolData> &UndefinedSymbolData) {
+void MachObjectWriter::
+ComputeSymbolTable(MCAssembler &Asm, SmallString<256> &StringTable,
+ std::vector<MachSymbolData> &LocalSymbolData,
+ std::vector<MachSymbolData> &ExternalSymbolData,
+ std::vector<MachSymbolData> &UndefinedSymbolData) {
// Build section lookup table.
DenseMap<const MCSection*, uint8_t> SectionIndexMap;
unsigned Index = 1;
@@ -1505,7 +1508,8 @@ void MachObjectWriter::computeSectionAddresses(const MCAssembler &Asm,
}
}
-void MachObjectWriter::ExecutePostLayoutBinding(MCAssembler &Asm, const MCAsmLayout &Layout) {
+void MachObjectWriter::ExecutePostLayoutBinding(MCAssembler &Asm,
+ const MCAsmLayout &Layout) {
computeSectionAddresses(Asm, Layout);
// Create symbol data for any indirect symbols.
@@ -1516,11 +1520,12 @@ void MachObjectWriter::ExecutePostLayoutBinding(MCAssembler &Asm, const MCAsmLay
UndefinedSymbolData);
}
-bool MachObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm,
- const MCSymbolData &DataA,
- const MCFragment &FB,
- bool InSet,
- bool IsPCRel) const {
+bool MachObjectWriter::
+IsSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm,
+ const MCSymbolData &DataA,
+ const MCFragment &FB,
+ bool InSet,
+ bool IsPCRel) const {
if (InSet)
return true;