FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DirectXShaderCompiler/lib/Object/ELF.cpp at main · microsoft/DirectXShaderCompiler · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
DirectXShaderCompiler
Public
Notifications
You must be signed in to change notification settings
Fork
897
Star
3.6k
Code
Issues
654
Pull requests
141
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
DirectXShaderCompiler
/
lib
/
Object
/
ELF.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
102 lines (96 loc) · 2.14 KB
Breadcrumbs
DirectXShaderCompiler
/
lib
/
Object
/
ELF.cpp
Copy path
File metadata and controls
102 lines (96 loc) · 2.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//
===- ELF.cpp - ELF object file implementation -----------------*- C++ -*-===//
//
//
The LLVM Compiler Infrastructure
//
//
This file is distributed under the University of Illinois Open Source
//
License. See LICENSE.TXT for details.
//
//
===----------------------------------------------------------------------===//
#
include
"
llvm/Object/ELF.h
"
namespace
llvm
{
namespace
object
{
#
define
ELF_RELOC
(
name, value
) \
case
ELF
::name: \
return
#name; \
StringRef
getELFRelocationTypeName
(
uint32_t
Machine,
uint32_t
Type) {
switch
(Machine) {
case
ELF
::
EM_X86_64
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/x86_64.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_386
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/i386.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_MIPS
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/Mips.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_AARCH64
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/AArch64.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_ARM
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/ARM.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_HEXAGON
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/Hexagon.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_PPC
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/PowerPC.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_PPC64
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/PowerPC64.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_S390
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/SystemZ.def
"
default
:
break
;
}
break
;
case
ELF
::
EM_SPARC
:
case
ELF
::
EM_SPARC32PLUS
:
case
ELF
::
EM_SPARCV9
:
switch
(Type) {
#
include
"
llvm/Support/ELFRelocs/Sparc.def
"
default
:
break
;
}
break
;
default
:
break
;
}
return
"
Unknown
"
;
}
#
undef
ELF_RELOC
}
//
end namespace object
}
//
end namespace llvm
Back
|
FazBrowse Home
|
New Git URL