Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compilation errors with clang CreateFromArgs() change (iovisor#2528)
Upstream change https://reviews.llvm.org/D66797 (in llvm 10) changed signature of CreateFromArgs(). Compiled with latest upstream, we will have compilation error like: /home/yhs/work/bcc/src/cc/frontends/clang/loader.cc:343:57: error: ‘cargs’ was not declared in this scope; did you mean ‘ccargs’? 343 | if (!CompilerInvocation::CreateFromArgs( invocation0, cargs. diags)) | ^~~~~ | ccargs Adjust bcc codes to use the new func signature. Signed-off-by: Yonghong Song <[email protected]>
- Loading branch information