mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Put all LLVM code into the llvm namespace, as per bug 109.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include "llvm/Analysis/LoopInfo.h"
|
||||
#include "llvm/Support/InstIterator.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
struct InstForestHelper : public FunctionPass {
|
||||
Function *F;
|
||||
|
@@ -20,6 +20,8 @@
|
||||
#include "llvm/Analysis/CallGraph.h"
|
||||
#include <fstream>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
template<typename GraphType>
|
||||
static void WriteGraphToFile(std::ostream &O, const std::string &GraphName,
|
||||
const GraphType >) {
|
||||
@@ -72,3 +74,5 @@ namespace {
|
||||
RegisterAnalysis<CallGraphPrinter> P2("print-callgraph",
|
||||
"Print Call Graph to 'dot' file");
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
@@ -31,6 +31,8 @@
|
||||
#include "llvm/Support/CFG.h"
|
||||
#include "Support/SCCIterator.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
namespace {
|
||||
struct CFGSCC : public FunctionPass {
|
||||
bool runOnFunction(Function& func);
|
||||
@@ -101,3 +103,5 @@ bool CallGraphSCC::run(Module &M) {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
@@ -26,6 +26,7 @@
|
||||
#include "Support/Timer.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
struct ModulePassPrinter : public Pass {
|
||||
const PassInfo *PassToPrint;
|
||||
|
Reference in New Issue
Block a user