projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The TargetData is not used for the isPowerOfTwo determination. It has never
[oota-llvm.git]
/
include
/
llvm
/
Analysis
/
CFGPrinter.h
diff --git
a/include/llvm/Analysis/CFGPrinter.h
b/include/llvm/Analysis/CFGPrinter.h
index 223bdec229097bcf3162df37fb7bc46adb64bca5..2af7a0253e677f26744ecad28443d5f747becbec 100644
(file)
--- a/
include/llvm/Analysis/CFGPrinter.h
+++ b/
include/llvm/Analysis/CFGPrinter.h
@@
-15,10
+15,10
@@
#ifndef LLVM_ANALYSIS_CFGPRINTER_H
#define LLVM_ANALYSIS_CFGPRINTER_H
#ifndef LLVM_ANALYSIS_CFGPRINTER_H
#define LLVM_ANALYSIS_CFGPRINTER_H
+#include "llvm/Assembly/Writer.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
-#include "llvm/Assembly/Writer.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/GraphWriter.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/GraphWriter.h"
@@
-29,13
+29,13
@@
struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
static std::string getGraphName(const Function *F) {
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
static std::string getGraphName(const Function *F) {
- return "CFG for '" + F->getName
S
tr() + "' function";
+ return "CFG for '" + F->getName
().s
tr() + "' function";
}
static std::string getSimpleNodeLabel(const BasicBlock *Node,
const Function *) {
if (!Node->getName().empty())
}
static std::string getSimpleNodeLabel(const BasicBlock *Node,
const Function *) {
if (!Node->getName().empty())
- return Node->getName
Str();
+ return Node->getName
().str();
std::string Str;
raw_string_ostream OS(Str);
std::string Str;
raw_string_ostream OS(Str);
@@
-95,7
+95,9
@@
struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
std::string Str;
raw_string_ostream OS(Str);
std::string Str;
raw_string_ostream OS(Str);
- OS << SI->getCaseValue(SuccNo)->getValue();
+ SwitchInst::ConstCaseIt Case =
+ SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
+ OS << Case.getCaseValue()->getValue();
return OS.str();
}
return "";
return OS.str();
}
return "";