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