mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Special case aliases in GlobalValue::getSection.
This is similar to the getAlignment patch, but is done just for completeness. It looks like we never call getSection on an alias. All the tests still pass if the if is replaced with an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -106,8 +106,8 @@ public:
|
||||
}
|
||||
void setDLLStorageClass(DLLStorageClassTypes C) { DllStorageClass = C; }
|
||||
|
||||
bool hasSection() const { return !Section.empty(); }
|
||||
const std::string &getSection() const { return Section; }
|
||||
bool hasSection() const { return !getSection().empty(); }
|
||||
const std::string &getSection() const;
|
||||
void setSection(StringRef S);
|
||||
|
||||
/// getType - Global values are always pointers.
|
||||
|
Reference in New Issue
Block a user