GlobalValue: Move trivial getAddressSpace getter to header
This commit is contained in:
parent
16312c5d7a
commit
4e0ca5ef00
@ -198,7 +198,9 @@ public:
|
||||
|
||||
GlobalValue(const GlobalValue &) = delete;
|
||||
|
||||
unsigned getAddressSpace() const;
|
||||
unsigned getAddressSpace() const {
|
||||
return getType()->getAddressSpace();
|
||||
}
|
||||
|
||||
enum class UnnamedAddr {
|
||||
None,
|
||||
|
||||
@ -118,11 +118,6 @@ bool GlobalValue::canBenefitFromLocalAlias() const {
|
||||
!isa<GlobalIFunc>(this) && !isDeduplicateComdat(getComdat());
|
||||
}
|
||||
|
||||
unsigned GlobalValue::getAddressSpace() const {
|
||||
PointerType *PtrTy = getType();
|
||||
return PtrTy->getAddressSpace();
|
||||
}
|
||||
|
||||
void GlobalObject::setAlignment(MaybeAlign Align) {
|
||||
assert((!Align || *Align <= MaximumAlignment) &&
|
||||
"Alignment is greater than MaximumAlignment!");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user