summaryrefslogtreecommitdiffstats
path: root/unittests/Analysis/LazyCallGraphTest.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-15 22:30:16 +0000
committerdim <dim@FreeBSD.org>2015-01-15 22:30:16 +0000
commit3c7e7a1538a873b0d3b012ef8811969ac4552c2a (patch)
tree3231b7529d89052b2edb92bb5ddc6a9e960e5161 /unittests/Analysis/LazyCallGraphTest.cpp
parente27feadae0885aa074df58ebfda2e7a7f7a7d590 (diff)
downloadFreeBSD-src-3c7e7a1538a873b0d3b012ef8811969ac4552c2a.zip
FreeBSD-src-3c7e7a1538a873b0d3b012ef8811969ac4552c2a.tar.gz
Vendor import of llvm RELEASE_351/final tag r225668 (effectively, 3.5.1 release):
https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_351/final@225668
Diffstat (limited to 'unittests/Analysis/LazyCallGraphTest.cpp')
-rw-r--r--unittests/Analysis/LazyCallGraphTest.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/unittests/Analysis/LazyCallGraphTest.cpp b/unittests/Analysis/LazyCallGraphTest.cpp
index d7c7045..7eb87dc 100644
--- a/unittests/Analysis/LazyCallGraphTest.cpp
+++ b/unittests/Analysis/LazyCallGraphTest.cpp
@@ -39,21 +39,23 @@ std::unique_ptr<Module> parseAssembly(const char *Assembly) {
return M;
}
-// IR forming a call graph with a diamond of triangle-shaped SCCs:
-//
-// d1
-// / \
-// d3--d2
-// / \
-// b1 c1
-// / \ / \
-// b3--b2 c3--c2
-// \ /
-// a1
-// / \
-// a3--a2
-//
-// All call edges go up between SCCs, and clockwise around the SCC.
+/*
+ IR forming a call graph with a diamond of triangle-shaped SCCs:
+
+ d1
+ / \
+ d3--d2
+ / \
+ b1 c1
+ / \ / \
+ b3--b2 c3--c2
+ \ /
+ a1
+ / \
+ a3--a2
+
+ All call edges go up between SCCs, and clockwise around the SCC.
+ */
static const char DiamondOfTriangles[] =
"define void @a1() {\n"
"entry:\n"
OpenPOWER on IntegriCloud