1//===-- MachineFunctionPass.cpp -------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file contains the definitions of the MachineFunctionPass members. 11// 12//===----------------------------------------------------------------------===// 13 14#include "llvm/Function.h" 15#include "llvm/Analysis/AliasAnalysis.h" 16#include "llvm/CodeGen/MachineFunctionAnalysis.h" 17#include "llvm/CodeGen/MachineFunctionPass.h"
| 1//===-- MachineFunctionPass.cpp -------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file contains the definitions of the MachineFunctionPass members. 11// 12//===----------------------------------------------------------------------===// 13 14#include "llvm/Function.h" 15#include "llvm/Analysis/AliasAnalysis.h" 16#include "llvm/CodeGen/MachineFunctionAnalysis.h" 17#include "llvm/CodeGen/MachineFunctionPass.h"
|
| 18#include "llvm/CodeGen/Passes.h"
|
18using namespace llvm; 19
| 19using namespace llvm; 20
|
| 21Pass *MachineFunctionPass::createPrinterPass(raw_ostream &O, 22 const std::string &Banner) const { 23 return createMachineFunctionPrinterPass(O, Banner); 24} 25
|
20bool MachineFunctionPass::runOnFunction(Function &F) { 21 // Do not codegen any 'available_externally' functions at all, they have 22 // definitions outside the translation unit. 23 if (F.hasAvailableExternallyLinkage()) 24 return false; 25 26 MachineFunction &MF = getAnalysis<MachineFunctionAnalysis>().getMF(); 27 return runOnMachineFunction(MF);
--- 23 unchanged lines hidden --- | 26bool MachineFunctionPass::runOnFunction(Function &F) { 27 // Do not codegen any 'available_externally' functions at all, they have 28 // definitions outside the translation unit. 29 if (F.hasAvailableExternallyLinkage()) 30 return false; 31 32 MachineFunction &MF = getAnalysis<MachineFunctionAnalysis>().getMF(); 33 return runOnMachineFunction(MF);
--- 23 unchanged lines hidden --- |