forked from OSchip/llvm-project
parent
935125126c
commit
303f8b06f8
|
@ -59,7 +59,7 @@ private:
|
|||
PassManager *getCodeGenPasses() const {
|
||||
if (!CodeGenPasses) {
|
||||
CodeGenPasses = new PassManager();
|
||||
CodeGenPasses->add(new DataLayout(TheModule));
|
||||
CodeGenPasses->add(new DataLayoutPass(TheModule));
|
||||
if (TM)
|
||||
TM->addAnalysisPasses(*CodeGenPasses);
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ private:
|
|||
PassManager *getPerModulePasses() const {
|
||||
if (!PerModulePasses) {
|
||||
PerModulePasses = new PassManager();
|
||||
PerModulePasses->add(new DataLayout(TheModule));
|
||||
PerModulePasses->add(new DataLayoutPass(TheModule));
|
||||
if (TM)
|
||||
TM->addAnalysisPasses(*PerModulePasses);
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ private:
|
|||
FunctionPassManager *getPerFunctionPasses() const {
|
||||
if (!PerFunctionPasses) {
|
||||
PerFunctionPasses = new FunctionPassManager(TheModule);
|
||||
PerFunctionPasses->add(new DataLayout(TheModule));
|
||||
PerFunctionPasses->add(new DataLayoutPass(TheModule));
|
||||
if (TM)
|
||||
TM->addAnalysisPasses(*PerFunctionPasses);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue