Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.434 kb
file = ARGV.shift
klass = ARGV.shift
require 'tempfile'
path = "llvm-type-temp.cpp"
File.open(path, "w+") do |f|
f.puts "#include \"#{file}\""
f.puts "void useme(#{klass}* thing);"
f.puts "void blah(#{klass}* thing) { useme(thing); }"
end
str = `llvm-g++ -I. -I.. -Iexternal_libs/libtommath -emit-llvm -S -o - "#{path}"`
str.split("\n").each do |line|
if /%"?struct.#{klass}"? = type/.match(line)
puts line
end
end
Jump to Line
Something went wrong with that request. Please try again.