mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Remove support for undocumented SpecialCaseList entries.
"global-init", "global-init-src" and "global-init-type" were originally used to blacklist entities in ASan init-order checker. However, they were never documented, and later were replaced by "=init" category. Old blacklist entries should be converted as follows: * global-init:foo -> global:foo=init * global-init-src:bar -> src:bar=init * global-init-type:baz -> type:baz=init git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -103,18 +103,6 @@ bool SpecialCaseList::parse(const MemoryBuffer *MB, std::string &Error) {
|
||||
std::string Regexp = SplitRegexp.first;
|
||||
StringRef Category = SplitRegexp.second;
|
||||
|
||||
// Backwards compatibility.
|
||||
if (Prefix == "global-init") {
|
||||
Prefix = "global";
|
||||
Category = "init";
|
||||
} else if (Prefix == "global-init-type") {
|
||||
Prefix = "type";
|
||||
Category = "init";
|
||||
} else if (Prefix == "global-init-src") {
|
||||
Prefix = "src";
|
||||
Category = "init";
|
||||
}
|
||||
|
||||
// See if we can store Regexp in Strings.
|
||||
if (Regex::isLiteralERE(Regexp)) {
|
||||
Entries[Prefix][Category].Strings.insert(Regexp);
|
||||
|
Reference in New Issue
Block a user