Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
ae919c9f
Commit
ae919c9f
authored
May 02, 2016
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
May 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor: mark these as noexcept
parent
a0f0cb72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/core/types.h
src/core/types.h
+2
-2
src/runtime/str.cpp
src/runtime/str.cpp
+1
-1
No files found.
src/core/types.h
View file @
ae919c9f
...
...
@@ -622,12 +622,12 @@ struct GetattrRewriteArgs;
struct
DelattrRewriteArgs
;
// Helper function around PyString_InternFromString:
BoxedString
*
internStringImmortal
(
llvm
::
StringRef
s
);
BoxedString
*
internStringImmortal
(
llvm
::
StringRef
s
)
noexcept
;
// Callers should use this function if they can accept mortal string objects.
// FIXME For now it just returns immortal strings, but at least we can use it
// to start documenting the places that can take mortal strings.
inline
BoxedString
*
internStringMortal
(
llvm
::
StringRef
s
)
{
inline
BoxedString
*
internStringMortal
(
llvm
::
StringRef
s
)
noexcept
{
return
internStringImmortal
(
s
);
}
...
...
src/runtime/str.cpp
View file @
ae919c9f
...
...
@@ -371,7 +371,7 @@ extern "C" PyObject* PyString_InternFromString(const char* s) noexcept {
return
internStringImmortal
(
s
);
}
BoxedString
*
internStringImmortal
(
llvm
::
StringRef
s
)
{
BoxedString
*
internStringImmortal
(
llvm
::
StringRef
s
)
noexcept
{
auto
&
entry
=
interned_strings
[
s
];
if
(
!
entry
)
{
num_interned_strings
.
log
();
...
...
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