mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Hide variable from other functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f590ced5c5
commit
5f65adda50
@ -48,8 +48,9 @@ static Option *getOption(const std::string &Str) {
|
||||
}
|
||||
|
||||
static std::vector<Option*> &getPositionalOpts() {
|
||||
static std::vector<Option*> Positional;
|
||||
return Positional;
|
||||
static std::vector<Option*> *Positional = 0;
|
||||
if (!Positional) Positional = new std::vector<Option*>();
|
||||
return *Positional;
|
||||
}
|
||||
|
||||
static void AddArgument(const char *ArgName, Option *Opt) {
|
||||
|
Loading…
Reference in New Issue
Block a user