Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
e8b6196f
Commit
e8b6196f
authored
22 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Fix anands changes
llvm-svn: 2806
parent
0a30bda2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/CWriter/Writer.cpp
+4
-6
4 additions, 6 deletions
llvm/lib/CWriter/Writer.cpp
with
4 additions
and
6 deletions
llvm/lib/CWriter/Writer.cpp
+
4
−
6
View file @
e8b6196f
...
...
@@ -23,11 +23,9 @@
#include
"Support/STLExtras.h"
#include
<algorithm>
#include
<set>
#include
<iostream>
using
std
::
string
;
using
std
::
map
;
using
std
::
ostream
;
using
std
::
cerr
;
static
std
::
string
getConstStrValue
(
const
Constant
*
CPV
);
...
...
@@ -114,7 +112,7 @@ static std::string getConstStrValue(const Constant* CPV) {
}
default
:
cerr
<<
"Unknown constant type: "
<<
CPV
<<
"
\n
"
;
std
::
cerr
<<
"Unknown constant type: "
<<
CPV
<<
"
\n
"
;
abort
();
}
}
...
...
@@ -140,7 +138,7 @@ static string calcTypeNameVar(const Type *Ty,
case
Type
::
FloatTyID
:
return
"float "
+
NameSoFar
;
case
Type
::
DoubleTyID
:
return
"double "
+
NameSoFar
;
default
:
cerr
<<
"Unknown primitive type: "
<<
Ty
<<
"
\n
"
;
std
::
cerr
<<
"Unknown primitive type: "
<<
Ty
<<
"
\n
"
;
abort
();
}
...
...
@@ -272,7 +270,7 @@ namespace {
void
visitGetElementPtrInst
(
GetElementPtrInst
&
I
);
void
visitInstruction
(
Instruction
&
I
)
{
cerr
<<
"C Writer does not know about "
<<
I
;
std
::
cerr
<<
"C Writer does not know about "
<<
I
;
abort
();
}
...
...
@@ -671,7 +669,7 @@ void CWriter::visitBinaryOperator(Instruction &I) {
case
Instruction
::
SetGT
:
Out
<<
" > "
;
break
;
case
Instruction
::
Shl
:
Out
<<
" << "
;
break
;
case
Instruction
::
Shr
:
Out
<<
" >> "
;
break
;
default:
cerr
<<
"Invalid operator type!"
<<
I
;
abort
();
default:
std
::
cerr
<<
"Invalid operator type!"
<<
I
;
abort
();
}
if
(
isa
<
PointerType
>
(
I
.
getType
()))
Out
<<
"(long long)"
;
...
...
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