Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created March 3, 2017 23:25
Show Gist options
  • Save luislavena/15f2e0da7ddf893e60183db6b02084c8 to your computer and use it in GitHub Desktop.
Save luislavena/15f2e0da7ddf893e60183db6b02084c8 to your computer and use it in GitHub Desktop.
clang++-3.7 -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc `/usr/bin/llvm-config-3.7 --cxxflags`
src/llvm/ext/llvm_ext.cc:122:27: error: no member named 'setSubprogram' in 'llvm::Function'
unwrap<Function>(Func)->setSubprogram(Sub);
~~~~~~~~~~~~~~~~~~~~~~ ^
src/llvm/ext/llvm_ext.cc:214:100: error: too few arguments to function call, expected at least 2,
have 1
...*CT = Dref->createSubroutineType(DITypeRefArray(unwrap<MDTuple>(ParameterTypes)));
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/lib/llvm-3.7/include/llvm/IR/DIBuilder.h:383:5: note: 'createSubroutineType' declared here
DISubroutineType *createSubroutineType(DIFile *File,
^
src/llvm/ext/llvm_ext.cc:236:30: error: no member named 'createAutoVariable' in 'llvm::DIBuilder'
DILocalVariable *V = Dref->createAutoVariable(
~~~~ ^
src/llvm/ext/llvm_ext.cc:265:30: error: no member named 'createParameterVariable' in
'llvm::DIBuilder'
DILocalVariable *V = Dref->createParameterVariable
~~~~ ^
4 errors generated.
Makefile:117: recipe for target 'src/llvm/ext/llvm_ext.o' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment