aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/CallGraphTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-04-14Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini1-2/+4
At the same time, fixes InstructionsTest::CastInst unittest: yes you can leave the IR in an invalid state and exit when you don't destroy the context (like the global one), no longer now. This is the first part of http://reviews.llvm.org/D19094 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266379
2014-11-18CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F.NAKAMURA Takumi1-3/+0
MSVC Runtime detects "Assertion failed: vector iterator not incrementable" llvm-svn: 222233
2014-11-17Fix GraphTraits for "const CallGraphNode *" and "const CallGraph *"Rafael Espindola1-0/+62
The specializations were broken. For example, void foo(const CallGraph *G) { auto I = GraphTraits<const CallGraph *>::nodes_begin(G); auto K = I++; ... } or void bar(const CallGraphNode *N) { auto I = GraphTraits<const CallGraphNode *>::nodes_begin(G); auto K = I++; .... } would not compile. Patch by Speziale Ettore! llvm-svn: 222149