-bool TargetMachine::getAsmVerbosityDefault() {
- return AsmVerbosityDefault;
-}
-
-void TargetMachine::setAsmVerbosityDefault(bool V) {
- AsmVerbosityDefault = V;
-}
-
-bool TargetMachine::getFunctionSections() const {
- return Options.FunctionSections;
-}
-
-bool TargetMachine::getDataSections() const {
- return Options.DataSections;
-}
-
-void TargetMachine::setFunctionSections(bool V) {
- Options.FunctionSections = V;
-}
-
-void TargetMachine::setDataSections(bool V) {
- Options.DataSections = V;
+TargetIRAnalysis TargetMachine::getTargetIRAnalysis() {
+ return TargetIRAnalysis([this](const Function &F) {
+ return TargetTransformInfo(F.getParent()->getDataLayout());
+ });