mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Dont' print scalar nodes for ConstantPointerRefs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17d5d863b2
commit
d9dad2cf61
@ -8,6 +8,7 @@
|
||||
#include "llvm/Analysis/DSGraph.h"
|
||||
#include "llvm/Analysis/DSGraphTraits.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Support/GraphWriter.h"
|
||||
@ -99,7 +100,7 @@ struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits {
|
||||
// Add scalar nodes to the graph...
|
||||
const DSGraph::ScalarMapTy &VM = G->getScalarMap();
|
||||
for (DSGraph::ScalarMapTy::const_iterator I = VM.begin(); I != VM.end();++I)
|
||||
if (!isa<GlobalValue>(I->first)) {
|
||||
if (!isa<GlobalValue>(I->first) && !isa<ConstantPointerRef>(I->first)) {
|
||||
std::stringstream OS;
|
||||
WriteAsOperand(OS, I->first, false, true, CurMod);
|
||||
GW.emitSimpleNode(I->first, "", OS.str());
|
||||
|
Loading…
Reference in New Issue
Block a user