mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-26 22:19:02 +00:00
[PM] Update the examples to reflect the removal of the
llvm/PassManager.h wrapper header and its using declarations. These now directly use the legacy namespace. I had updated the #include lines in my large commit but forgot that the examples weren't being built and didn't update the code to use the correct namespace. Sorry for the noise here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -594,7 +594,7 @@ static PrototypeAST *ParseExtern() {
|
||||
static Module *TheModule;
|
||||
static IRBuilder<> Builder(getGlobalContext());
|
||||
static std::map<std::string, Value *> NamedValues;
|
||||
static FunctionPassManager *TheFPM;
|
||||
static legacy::FunctionPassManager *TheFPM;
|
||||
|
||||
Value *ErrorV(const char *Str) {
|
||||
Error(Str);
|
||||
@@ -1029,7 +1029,7 @@ int main() {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
FunctionPassManager OurFPM(TheModule);
|
||||
legacy::FunctionPassManager OurFPM(TheModule);
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
|
||||
Reference in New Issue
Block a user