Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIVINE
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
paradise
mirror
DIVINE
Commits
f007a3ae
There was an error fetching the commit references. Please try again later.
Commit
f007a3ae
authored
5 years ago
by
Zuzana Baranová
Browse files
Options
Downloads
Patches
Plain Diff
CC: Move whitelisted() functions into an anonymous namespace in link.hpp.
parent
6a7e6fdc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
divine/cc/link.hpp
+17
-14
17 additions, 14 deletions
divine/cc/link.hpp
with
17 additions
and
14 deletions
divine/cc/link.hpp
+
17
−
14
View file @
f007a3ae
...
@@ -39,22 +39,25 @@ namespace divine::cc
...
@@ -39,22 +39,25 @@ namespace divine::cc
{
{
using
PairedFiles
=
std
::
vector
<
std
::
pair
<
std
::
string
,
std
::
string
>
>
;
using
PairedFiles
=
std
::
vector
<
std
::
pair
<
std
::
string
,
std
::
string
>
>
;
bool
whitelisted
(
llvm
::
Function
&
f
)
namespace
{
{
using
brick
::
string
::
startsWith
;
bool
whitelisted
(
llvm
::
Function
&
f
)
using
vm
::
xg
::
hypercall
;
{
using
brick
::
string
::
startsWith
;
auto
n
=
f
.
getName
();
using
vm
::
xg
::
hypercall
;
return
hypercall
(
&
f
)
!=
vm
::
lx
::
NotHypercall
||
startsWith
(
n
,
"__dios_"
)
||
auto
n
=
f
.
getName
();
startsWith
(
n
,
"_ZN6__dios"
)
||
return
hypercall
(
&
f
)
!=
vm
::
lx
::
NotHypercall
||
startsWith
(
n
,
"_Unwind_"
)
||
startsWith
(
n
,
"__dios_"
)
||
n
==
"setjmp"
||
n
==
"longjmp"
;
startsWith
(
n
,
"_ZN6__dios"
)
||
}
startsWith
(
n
,
"_Unwind_"
)
||
n
==
"setjmp"
||
n
==
"longjmp"
;
}
bool
whitelisted
(
llvm
::
GlobalVariable
&
gv
)
bool
whitelisted
(
llvm
::
GlobalVariable
&
gv
)
{
{
return
brick
::
string
::
startsWith
(
gv
.
getName
(),
"__md_"
);
return
brick
::
string
::
startsWith
(
gv
.
getName
(),
"__md_"
);
}
}
}
template
<
typename
Driver
,
bool
link_dios
>
template
<
typename
Driver
,
bool
link_dios
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment