Skip to content

Commit 0715fa3

Browse files
committed
major structural pipification over, debugging ahead.
1 parent 2ebcd4d commit 0715fa3

File tree

8 files changed

+45
-22
lines changed

8 files changed

+45
-22
lines changed

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Copyright (c) 2013-2016 Ian A. Mason, Tristan Ravitch, Bruno Dutertre
12
Copyright (c) 2011-2013 Tristan Ravitch
23
Copyright (c) 2013 Ben Liblit, Daniel Liew
34

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ Building a bitcode module with clang
9292
# Produces pkg-config.bc
9393
extract-bc pkg-config
9494

95-
A gentler set of instructions on building apache can be found
96-
[here.](https://github.com/SRI-CSL/whole-program-llvm/blob/master/tutorial.md)
95+
A gentler set of instructions on building apache in a vagrant Ubuntu 14.04 can be found
96+
[here,](https://github.com/SRI-CSL/whole-program-llvm/blob/master/doc/tutorial.md) and
97+
for Ubuntu 16.04
98+
[here.](https://github.com/SRI-CSL/whole-program-llvm/blob/master/doc/tutorial-ubuntu-16.04.md)
9799

98100
Building a bitcode module with dragonegg
99101
========================================
@@ -129,7 +131,7 @@ Building an Operating System
129131
============================
130132

131133
To see how to build freeBSD 10.0 from scratch check out this
132-
[guide.](../master/README-freeBSD.md)
134+
[guide.](../master/doc/tutorial-freeBSD.md)
133135

134136

135137
Configuring without building bitcode

sanity/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

extract-bc renamed to wllvm/extract-bc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ that contains a section called __llvm_bc.
2222
"""
2323

2424
import sys
25-
from driver.extraction import *
2625

27-
if __name__ == '__main__':
28-
sys.exit(extraction(sys.argv))
26+
sys.path.append(os.path.abspath(os.path.join(__file__, '..')))
27+
28+
from wllvm.extraction import *
29+
30+
def main():
31+
return extraction(sys.argv)
32+

wllvm/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
prefix = os.path.dirname(fullSelfPath)
1717
driverDir = prefix
1818

19+
# Freeping Creaturism:
20+
#
21+
# this is the all important version number used by pip.
22+
#
23+
#
24+
wllvm_version='1.0.0.dev0'
1925

2026

2127
# Environmental variable for path to compiler tools (clang/llvm-link etc..)

pwllvm renamed to wllvm/wllvm

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,21 @@ linked into a library or executable.
1212

1313
import sys
1414
import os
15-
from driver.utils import *
16-
import driver.logconfig
1715

18-
cmd = list(sys.argv)
19-
cmd = cmd[1:]
16+
sys.path.append(os.path.abspath(os.path.join(__file__, '..')))
2017

21-
builder = getBuilder(cmd, False)
22-
buildObject(builder)
23-
if not os.environ.get('WLLVM_CONFIGURE_ONLY', False):
24-
buildAndAttachBitcode(builder)
18+
19+
from wllvm.utils import *
20+
import wllvm.logconfig
21+
22+
23+
def main():
24+
cmd = list(sys.argv)
25+
cmd = cmd[1:]
26+
27+
builder = getBuilder(cmd, False)
28+
buildObject(builder)
29+
if not os.environ.get('WLLVM_CONFIGURE_ONLY', False):
30+
buildAndAttachBitcode(builder)
31+
32+
return 0

pwllvm++ renamed to wllvm/wllvm++

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ into a library or executable.
1010

1111
import sys
1212
import os
13-
from driver.utils import *
14-
import driver.logconfig
13+
14+
sys.path.append(os.path.abspath(os.path.join(__file__, '..')))
15+
16+
from wllvm.utils import *
17+
import wllvm.logconfig
1518

1619
cmd = list(sys.argv)
1720
cmd = cmd[1:]

pwllvm-sanity-checker renamed to wllvm/wllvm-sanity-checker

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Hopefully never dumping a python stack trace.
77
"""
88

99
import sys
10-
from sanity.checker import *
1110

12-
def main(args):
13-
return Checker().check()
11+
sys.path.append(os.path.abspath(os.path.join(__file__, '..')))
12+
13+
from wllvm.checker import *
1414

15+
def main():
16+
return Checker().check()
1517

16-
if __name__ == '__main__':
17-
sys.exit(main(sys.argv))
1818

1919

2020

0 commit comments

Comments
 (0)