Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
22948627
Commit
22948627
authored
Sep 10, 2015
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #205 from iovisor/bblanco_dev
Add clang command line invocation to debug=0x4
parents
38f602d6
0a0d109e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/loader.cc
+7
-0
No files found.
src/cc/frontends/clang/loader.cc
View file @
22948627
...
@@ -138,6 +138,13 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, unique_ptr<vector<TableDes
...
@@ -138,6 +138,13 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, unique_ptr<vector<TableDes
// Initialize a compiler invocation object from the clang (-cc1) arguments.
// Initialize a compiler invocation object from the clang (-cc1) arguments.
const
driver
::
ArgStringList
&
ccargs
=
cmd
.
getArguments
();
const
driver
::
ArgStringList
&
ccargs
=
cmd
.
getArguments
();
if
(
flags_
&
0x4
)
{
llvm
::
errs
()
<<
"clang"
;
for
(
auto
arg
:
ccargs
)
llvm
::
errs
()
<<
" "
<<
arg
;
llvm
::
errs
()
<<
"
\n
"
;
}
// first pass
// first pass
auto
invocation1
=
make_unique
<
CompilerInvocation
>
();
auto
invocation1
=
make_unique
<
CompilerInvocation
>
();
if
(
!
CompilerInvocation
::
CreateFromArgs
(
*
invocation1
,
const_cast
<
const
char
**>
(
ccargs
.
data
()),
if
(
!
CompilerInvocation
::
CreateFromArgs
(
*
invocation1
,
const_cast
<
const
char
**>
(
ccargs
.
data
()),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment