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
704ec9a5
Commit
704ec9a5
authored
Mar 25, 2015
by
Chris Toshok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't introduce g.llvm_boxed_string_type_ptr, just use llvm_value_type_ptr
parent
d5d5ace0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
src/codegen/codegen.h
src/codegen/codegen.h
+1
-1
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+2
-3
src/codegen/runtime_hooks.cpp
src/codegen/runtime_hooks.cpp
+0
-3
No files found.
src/codegen/codegen.h
View file @
704ec9a5
...
...
@@ -72,7 +72,7 @@ struct GlobalState {
llvm
::
Type
*
llvm_str_type_ptr
;
llvm
::
Type
*
frame_info_type
;
llvm
::
Type
*
llvm_clfunction_type_ptr
,
*
llvm_closure_type_ptr
,
*
llvm_generator_type_ptr
;
llvm
::
Type
*
llvm_module_type_ptr
,
*
llvm_bool_type_ptr
,
*
llvm_boxed_string_type_ptr
;
llvm
::
Type
*
llvm_module_type_ptr
,
*
llvm_bool_type_ptr
;
llvm
::
Type
*
llvm_excinfo_type
;
llvm
::
Type
*
i1
,
*
i8
,
*
i8_ptr
,
*
i32
,
*
i64
,
*
void_
,
*
double_
;
llvm
::
Type
*
vector_ptr
;
...
...
src/codegen/irgen/irgenerator.cpp
View file @
704ec9a5
...
...
@@ -1013,9 +1013,8 @@ private:
CompilerVariable
*
evalStr
(
AST_Str
*
node
,
UnwindInfo
unw_info
)
{
if
(
node
->
str_type
==
AST_Str
::
STR
)
{
llvm
::
Value
*
rtn
=
embedConstantPtr
(
irstate
->
getSourceInfo
()
->
parent_module
->
getStringConstant
(
node
->
str_data
),
g
.
llvm_boxed_string_type_ptr
);
llvm
::
Value
*
rtn
=
embedConstantPtr
(
irstate
->
getSourceInfo
()
->
parent_module
->
getStringConstant
(
node
->
str_data
),
g
.
llvm_value_type_ptr
);
return
new
ConcreteCompilerVariable
(
STR
,
rtn
,
true
);
...
...
src/codegen/runtime_hooks.cpp
View file @
704ec9a5
...
...
@@ -153,9 +153,6 @@ void initGlobalFuncs(GlobalState& g) {
g
.
frame_info_type
=
g
.
stdlib_module
->
getTypeByName
(
"struct.pyston::FrameInfo"
);
assert
(
g
.
frame_info_type
);
g
.
llvm_boxed_string_type_ptr
=
g
.
stdlib_module
->
getTypeByName
(
"class.pyston::BoxedString"
)
->
getPointerTo
();
assert
(
g
.
llvm_boxed_string_type_ptr
);
#define GET(N) g.funcs.N = getFunc((void*)N, STRINGIFY(N))
g
.
funcs
.
printf
=
addFunc
((
void
*
)
printf
,
g
.
i8_ptr
,
true
);
...
...
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