projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f48ff7
)
Add ability to set TYPE and FLAGS field for section trivially
author
Chris Lattner
<sabre@nondot.org>
Sat, 16 Jul 2005 17:35:26 +0000
(17:35 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 16 Jul 2005 17:35:26 +0000
(17:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22454
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/ELFWriter.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/ELFWriter.h
b/include/llvm/CodeGen/ELFWriter.h
index 9211047f4af9f4e7eb3fdca2fb2017ac60ca3b6e..3d3d448aa126b898ed9620a32a271021367d9325 100644
(file)
--- a/
include/llvm/CodeGen/ELFWriter.h
+++ b/
include/llvm/CodeGen/ELFWriter.h
@@
-152,13
+152,16
@@
namespace llvm {
/// getSection - Return the section with the specified name, creating a new
/// section if one does not already exist.
- ELFSection &getSection(const std::string &Name) {
+ ELFSection &getSection(const std::string &Name,
+ unsigned Type, unsigned Flags = 0) {
ELFSection *&SN = SectionLookup[Name];
if (SN) return *SN;
SectionList.push_back(Name);
SN = &SectionList.back();
SN->SectionIdx = NumSections++;
+ SN->Type = Type;
+ SN->Flags = Flags;
return *SN;
}