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
fc4d4646
Commit
fc4d4646
authored
May 11, 2017
by
4ast
Committed by
GitHub
May 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1169 from iovisor/clang_inputkind
llvm5.0: use input kind helper to avoid breakage
parents
84a38b9c
76887992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/loader.cc
+6
-6
No files found.
src/cc/frontends/clang/loader.cc
View file @
fc4d4646
...
...
@@ -230,8 +230,8 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts, const st
if
(
in_memory
)
{
invocation0
.
getPreprocessorOpts
().
addRemappedFile
(
main_path
,
&*
main_buf
);
invocation0
.
getFrontendOpts
().
Inputs
.
clear
();
invocation0
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
IK_C
));
invocation0
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
FrontendOptions
::
getInputKindForExtension
(
"c"
)
));
}
invocation0
.
getFrontendOpts
().
DisableFree
=
false
;
...
...
@@ -260,8 +260,8 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts, const st
invocation1
.
getPreprocessorOpts
().
addRemappedFile
(
f
.
first
,
&*
f
.
second
);
invocation1
.
getPreprocessorOpts
().
addRemappedFile
(
main_path
,
&*
out_buf
);
invocation1
.
getFrontendOpts
().
Inputs
.
clear
();
invocation1
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
IK_C
));
invocation1
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
FrontendOptions
::
getInputKindForExtension
(
"c"
)
));
invocation1
.
getFrontendOpts
().
DisableFree
=
false
;
compiler1
.
createDiagnostics
();
...
...
@@ -286,8 +286,8 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts, const st
invocation2
.
getPreprocessorOpts
().
addRemappedFile
(
f
.
first
,
&*
f
.
second
);
invocation2
.
getPreprocessorOpts
().
addRemappedFile
(
main_path
,
&*
out_buf1
);
invocation2
.
getFrontendOpts
().
Inputs
.
clear
();
invocation2
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
IK_C
));
invocation2
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
FrontendOptions
::
getInputKindForExtension
(
"c"
)
));
invocation2
.
getFrontendOpts
().
DisableFree
=
false
;
// Resort to normal inlining. In -O0 the default is OnlyAlwaysInlining and
// clang might add noinline attribute even for functions with inline hint.
...
...
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