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
3def08b4
Commit
3def08b4
authored
Jan 07, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-run clang-format
Also, set "AlignOperands: true" to continue getting that behavior.
parent
bf42fc79
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/.clang-format
src/.clang-format
+1
-0
src/asm_writing/rewriter.cpp
src/asm_writing/rewriter.cpp
+4
-5
src/capi/errors.cpp
src/capi/errors.cpp
+1
-1
src/codegen/unwinding.cpp
src/codegen/unwinding.cpp
+1
-1
No files found.
src/.clang-format
View file @
3def08b4
...
...
@@ -2,6 +2,7 @@ BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignAfterOpenBracket: true # new in clang rev 222284
AlignOperands: true # new in clang rev 223117
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
...
...
src/asm_writing/rewriter.cpp
View file @
3def08b4
...
...
@@ -901,10 +901,9 @@ void Rewriter::finishAssembly(int continue_offset) {
void
Rewriter
::
commitReturning
(
RewriterVar
*
var
)
{
addAction
([
=
]()
{
var
->
getInReg
(
getReturnDestination
(),
true
/* allow_constant_in_reg */
);
var
->
bumpUse
();
},
{
var
},
ActionType
::
NORMAL
);
var
->
getInReg
(
getReturnDestination
(),
true
/* allow_constant_in_reg */
);
var
->
bumpUse
();
},
{
var
},
ActionType
::
NORMAL
);
commit
();
}
...
...
@@ -1214,7 +1213,7 @@ void Rewriter::addLocationToVar(RewriterVar* var, Location l) {
assert
(
vars_by_location
.
count
(
l
)
==
0
);
ASSERT
(
l
.
type
==
Location
::
Register
||
l
.
type
==
Location
::
XMMRegister
||
l
.
type
==
Location
::
Scratch
||
l
.
type
==
Location
::
Stack
,
||
l
.
type
==
Location
::
Stack
,
"%d"
,
l
.
type
);
var
->
locations
.
insert
(
l
);
...
...
src/capi/errors.cpp
View file @
3def08b4
...
...
@@ -65,7 +65,7 @@ extern "C" PyObject* PyErr_SetFromErrnoWithFilenameObject(PyObject* exc, PyObjec
s
=
_sys_errlist
[
i
];
}
else
{
int
len
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
/* no message source */
i
,
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
/* Default language */
...
...
src/codegen/unwinding.cpp
View file @
3def08b4
...
...
@@ -123,7 +123,7 @@ public:
#if LLVMREV < 208921
llvm
::
DILineInfoTable
lines
=
Context
->
getLineInfoForAddressRange
(
Addr
,
Size
,
llvm
::
DILineInfoSpecifier
::
FunctionName
|
llvm
::
DILineInfoSpecifier
::
FileLineInfo
|
llvm
::
DILineInfoSpecifier
::
AbsoluteFilePath
);
|
llvm
::
DILineInfoSpecifier
::
AbsoluteFilePath
);
#else
llvm
::
DILineInfoTable
lines
=
Context
->
getLineInfoForAddressRange
(
Addr
,
Size
,
llvm
::
DILineInfoSpecifier
(
llvm
::
DILineInfoSpecifier
::
FileLineInfoKind
::
AbsoluteFilePath
,
...
...
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