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
7de1ebae
Commit
7de1ebae
authored
17 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
silence annoying gcc 4.3 warnings
llvm-svn: 36681
parent
dad2d093
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/System/Path.cpp
+4
-2
4 additions, 2 deletions
llvm/lib/System/Path.cpp
with
4 additions
and
2 deletions
llvm/lib/System/Path.cpp
+
4
−
2
View file @
7de1ebae
...
@@ -44,11 +44,12 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
...
@@ -44,11 +44,12 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
assert
(
length
>=
4
&&
"Invalid magic number length"
);
assert
(
length
>=
4
&&
"Invalid magic number length"
);
switch
(
magic
[
0
])
{
switch
(
magic
[
0
])
{
case
'l'
:
case
'l'
:
if
(
magic
[
1
]
==
'l'
&&
magic
[
2
]
==
'v'
)
if
(
magic
[
1
]
==
'l'
&&
magic
[
2
]
==
'v'
)
{
if
(
magic
[
3
]
==
'c'
)
if
(
magic
[
3
]
==
'c'
)
return
CompressedBytecode_FileType
;
return
CompressedBytecode_FileType
;
else
if
(
magic
[
3
]
==
'm'
)
else
if
(
magic
[
3
]
==
'm'
)
return
Bytecode_FileType
;
return
Bytecode_FileType
;
}
break
;
break
;
case
'!'
:
case
'!'
:
if
(
length
>=
8
)
if
(
length
>=
8
)
...
@@ -57,7 +58,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
...
@@ -57,7 +58,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
break
;
break
;
case
'\177'
:
case
'\177'
:
if
(
magic
[
1
]
==
'E'
&&
magic
[
2
]
==
'L'
&&
magic
[
3
]
==
'F'
)
if
(
magic
[
1
]
==
'E'
&&
magic
[
2
]
==
'L'
&&
magic
[
3
]
==
'F'
)
{
if
(
length
>=
18
&&
magic
[
17
]
==
0
)
if
(
length
>=
18
&&
magic
[
17
]
==
0
)
switch
(
magic
[
16
])
{
switch
(
magic
[
16
])
{
default:
break
;
default:
break
;
...
@@ -66,6 +67,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
...
@@ -66,6 +67,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
case
3
:
return
ELF_SharedObject_FileType
;
case
3
:
return
ELF_SharedObject_FileType
;
case
4
:
return
ELF_Core_FileType
;
case
4
:
return
ELF_Core_FileType
;
}
}
}
break
;
break
;
case
0xCA
:
case
0xCA
:
...
...
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