mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-02 09:49:09 +00:00
Fix indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e23aea28f9
commit
018e38c6dd
@ -186,27 +186,27 @@ TargetLoweringObjectFileELF::getPersonalityPICSymbol(StringRef Name) const {
|
|||||||
void TargetLoweringObjectFileELF::emitPersonalityValue(MCStreamer &Streamer,
|
void TargetLoweringObjectFileELF::emitPersonalityValue(MCStreamer &Streamer,
|
||||||
const TargetMachine &TM,
|
const TargetMachine &TM,
|
||||||
const MCSymbol *Sym) const {
|
const MCSymbol *Sym) const {
|
||||||
MCSymbol *Label = getPersonalityPICSymbol(Sym->getName());
|
MCSymbol *Label = getPersonalityPICSymbol(Sym->getName());
|
||||||
Streamer.EmitSymbolAttribute(Label, MCSA_Hidden);
|
Streamer.EmitSymbolAttribute(Label, MCSA_Hidden);
|
||||||
Streamer.EmitSymbolAttribute(Label, MCSA_Weak);
|
Streamer.EmitSymbolAttribute(Label, MCSA_Weak);
|
||||||
Twine SectionName = StringRef(".data.") + Label->getName();
|
Twine SectionName = StringRef(".data.") + Label->getName();
|
||||||
SmallString<64> NameData;
|
SmallString<64> NameData;
|
||||||
SectionName.toVector(NameData);
|
SectionName.toVector(NameData);
|
||||||
unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP;
|
unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP;
|
||||||
const MCSection *Sec = getContext().getELFSection(NameData,
|
const MCSection *Sec = getContext().getELFSection(NameData,
|
||||||
ELF::SHT_PROGBITS,
|
ELF::SHT_PROGBITS,
|
||||||
Flags,
|
Flags,
|
||||||
SectionKind::getDataRel(),
|
SectionKind::getDataRel(),
|
||||||
0, Label->getName());
|
0, Label->getName());
|
||||||
Streamer.SwitchSection(Sec);
|
Streamer.SwitchSection(Sec);
|
||||||
Streamer.EmitValueToAlignment(8);
|
Streamer.EmitValueToAlignment(8);
|
||||||
Streamer.EmitSymbolAttribute(Label, MCSA_ELF_TypeObject);
|
Streamer.EmitSymbolAttribute(Label, MCSA_ELF_TypeObject);
|
||||||
const MCExpr *E = MCConstantExpr::Create(8, getContext());
|
const MCExpr *E = MCConstantExpr::Create(8, getContext());
|
||||||
Streamer.EmitELFSize(Label, E);
|
Streamer.EmitELFSize(Label, E);
|
||||||
Streamer.EmitLabel(Label);
|
Streamer.EmitLabel(Label);
|
||||||
|
|
||||||
unsigned Size = TM.getTargetData()->getPointerSize();
|
unsigned Size = TM.getTargetData()->getPointerSize();
|
||||||
Streamer.EmitSymbolValue(Sym, Size);
|
Streamer.EmitSymbolValue(Sym, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SectionKind
|
static SectionKind
|
||||||
|
Loading…
Reference in New Issue
Block a user