Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (15 sloc) 0.427 kb
a352624 Start of new LLVM JIT
Evan Phoenix authored
1 file = ARGV.shift
2 klass = ARGV.shift
3
4 require 'tempfile'
5
6 path = "llvm-type-temp.cpp"
7
8 File.open(path, "w+") do |f|
9 f.puts "#include \"#{file}\""
10 f.puts "void useme(#{klass}* thing);"
11 f.puts "void blah(#{klass}* thing) { useme(thing); }"
12 end
13
eff4aa4 @brixen Changed references from vm/external_libs to vendor.
brixen authored
14 str = `llvm-g++ -I. -I.. -Ivendor/libtommath -emit-llvm -S -o - "#{path}"`
a352624 Start of new LLVM JIT
Evan Phoenix authored
15
16 str.split("\n").each do |line|
17 if /%"?struct.#{klass}"? = type/.match(line)
18 puts line
19 end
20 end
Something went wrong with that request. Please try again.