mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Be more strict about not allowing setSection on aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -110,11 +110,7 @@ public:
|
||||
|
||||
bool hasSection() const { return !Section.empty(); }
|
||||
const std::string &getSection() const { return Section; }
|
||||
void setSection(StringRef S) {
|
||||
assert((getValueID() != Value::GlobalAliasVal || S.empty()) &&
|
||||
"GlobalAlias should not have a section!");
|
||||
Section = S;
|
||||
}
|
||||
void setSection(StringRef S);
|
||||
|
||||
/// getType - Global values are always pointers.
|
||||
inline PointerType *getType() const {
|
||||
|
Reference in New Issue
Block a user