mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
document some invariants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -592,9 +592,10 @@ namespace llvm {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// SectionForGlobal - This hooks returns proper section name for given
|
/// SectionForGlobal - This method computes the appropriate section to emit
|
||||||
/// global with all necessary flags and marks.
|
/// the specified global variable or function definition. This should not
|
||||||
// FIXME: MOVE TO TARGETLOWERING.
|
/// be passed external (or available externally) globals.
|
||||||
|
// FIXME: MOVE TO ASMPRINTER.
|
||||||
const Section* SectionForGlobal(const GlobalValue *GV) const;
|
const Section* SectionForGlobal(const GlobalValue *GV) const;
|
||||||
|
|
||||||
/// getSpecialCasedSectionGlobals - Allow the target to completely override
|
/// getSpecialCasedSectionGlobals - Allow the target to completely override
|
||||||
|
@@ -293,8 +293,13 @@ static SectionKind::Kind SectionKindForGlobal(const GlobalValue *GV,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// SectionForGlobal - This method computes the appropriate section to emit
|
||||||
|
/// the specified global variable or function definition. This should not
|
||||||
|
/// be passed external (or available externally) globals.
|
||||||
const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
|
const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
|
||||||
|
assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() &&
|
||||||
|
"Can only be used for global definitions");
|
||||||
|
|
||||||
SectionKind::Kind Kind = SectionKindForGlobal(GV, TM.getRelocationModel());
|
SectionKind::Kind Kind = SectionKindForGlobal(GV, TM.getRelocationModel());
|
||||||
|
|
||||||
// Select section name.
|
// Select section name.
|
||||||
|
Reference in New Issue
Block a user