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
40f8c845
Commit
40f8c845
authored
19 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Simplify the subtarget info, allow the asmwriter to do some target sensing
based on TargetType. llvm-svn: 24478
parent
99be8f76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/lib/Target/X86/X86Subtarget.cpp
+2
-15
2 additions, 15 deletions
llvm/lib/Target/X86/X86Subtarget.cpp
llvm/lib/Target/X86/X86Subtarget.h
+0
-7
0 additions, 7 deletions
llvm/lib/Target/X86/X86Subtarget.h
with
2 additions
and
22 deletions
llvm/lib/Target/X86/X86Subtarget.cpp
+
2
−
15
View file @
40f8c845
...
@@ -16,11 +16,7 @@
...
@@ -16,11 +16,7 @@
using
namespace
llvm
;
using
namespace
llvm
;
X86Subtarget
::
X86Subtarget
(
const
Module
&
M
,
const
std
::
string
&
FS
)
X86Subtarget
::
X86Subtarget
(
const
Module
&
M
,
const
std
::
string
&
FS
)
:
TargetSubtarget
(),
stackAlignment
(
8
),
:
stackAlignment
(
8
),
indirectExternAndWeakGlobals
(
false
)
{
indirectExternAndWeakGlobals
(
false
),
asmDarwinLinkerStubs
(
false
),
asmLeadingUnderscore
(
false
),
asmAlignmentIsInBytes
(
false
),
asmPrintDotLocalConstants
(
false
),
asmPrintDotLCommConstants
(
false
),
asmPrintConstantAlignment
(
false
)
{
// Default to ELF unless otherwise specified.
// Default to ELF unless otherwise specified.
TargetType
=
isELF
;
TargetType
=
isELF
;
...
@@ -46,17 +42,8 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS)
...
@@ -46,17 +42,8 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS)
#endif
#endif
}
}
switch
(
TargetType
)
{
if
(
TargetType
==
isDarwin
)
{
case
isCygwin
:
asmLeadingUnderscore
=
true
;
break
;
case
isDarwin
:
stackAlignment
=
16
;
stackAlignment
=
16
;
indirectExternAndWeakGlobals
=
true
;
indirectExternAndWeakGlobals
=
true
;
asmDarwinLinkerStubs
=
true
;
asmLeadingUnderscore
=
true
;
asmPrintDotLCommConstants
=
true
;
break
;
default:
break
;
}
}
}
}
This diff is collapsed.
Click to expand it.
llvm/lib/Target/X86/X86Subtarget.h
+
0
−
7
View file @
40f8c845
...
@@ -30,13 +30,6 @@ protected:
...
@@ -30,13 +30,6 @@ protected:
/// Used by instruction selector
/// Used by instruction selector
bool
indirectExternAndWeakGlobals
;
bool
indirectExternAndWeakGlobals
;
/// Used by the asm printer
bool
asmDarwinLinkerStubs
;
bool
asmLeadingUnderscore
;
bool
asmAlignmentIsInBytes
;
bool
asmPrintDotLocalConstants
;
bool
asmPrintDotLCommConstants
;
bool
asmPrintConstantAlignment
;
public:
public:
enum
{
enum
{
isELF
,
isCygwin
,
isDarwin
,
isWindows
isELF
,
isCygwin
,
isDarwin
,
isWindows
...
...
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