[llvm] r180137 - Fix typo.
Rafael Espindola
rafael.espindola at gmail.com
Tue Apr 23 12:39:34 PDT 2013
Author: rafael
Date: Tue Apr 23 14:39:34 2013
New Revision: 180137
URL: http://llvm.org/viewvc/llvm-project?rev=180137&view=rev
Log:
Fix typo.
Modified:
llvm/trunk/test/Object/Inputs/COFF/i386.yaml
llvm/trunk/test/Object/Inputs/COFF/x86-64.yaml
llvm/trunk/tools/yaml2obj/yaml2obj.cpp
Modified: llvm/trunk/test/Object/Inputs/COFF/i386.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/COFF/i386.yaml?rev=180137&r1=180136&r2=180137&view=diff
==============================================================================
--- llvm/trunk/test/Object/Inputs/COFF/i386.yaml (original)
+++ llvm/trunk/test/Object/Inputs/COFF/i386.yaml Tue Apr 23 14:39:34 2013
@@ -38,7 +38,7 @@ symbols:
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
NumberOfAuxSymbols: 1
- AuxillaryData: !hex "240000000300000000000000010000000000" # |$.................|
+ AuxiliaryData: !hex "240000000300000000000000010000000000" # |$.................|
- !Symbol
Name: .data
@@ -48,7 +48,7 @@ symbols:
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
NumberOfAuxSymbols: 1
- AuxillaryData: !hex "0D0000000000000000000000020000000000" # |..................|
+ AuxiliaryData: !hex "0D0000000000000000000000020000000000" # |..................|
- !Symbol
Name: _main
Modified: llvm/trunk/test/Object/Inputs/COFF/x86-64.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/COFF/x86-64.yaml?rev=180137&r1=180136&r2=180137&view=diff
==============================================================================
--- llvm/trunk/test/Object/Inputs/COFF/x86-64.yaml (original)
+++ llvm/trunk/test/Object/Inputs/COFF/x86-64.yaml Tue Apr 23 14:39:34 2013
@@ -37,7 +37,7 @@ symbols:
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
NumberOfAuxSymbols: 1
- AuxillaryData: !hex "260000000300000000000000010000000000" # |&.................|
+ AuxiliaryData: !hex "260000000300000000000000010000000000" # |&.................|
- !Symbol
Name: .data
@@ -47,7 +47,7 @@ symbols:
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
NumberOfAuxSymbols: 1
- AuxillaryData: !hex "0D0000000000000000000000020000000000" # |..................|
+ AuxiliaryData: !hex "0D0000000000000000000000020000000000" # |..................|
- !Symbol
Name: main
Modified: llvm/trunk/tools/yaml2obj/yaml2obj.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2obj.cpp?rev=180137&r1=180136&r2=180137&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2obj.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2obj.cpp Tue Apr 23 14:39:34 2013
@@ -128,7 +128,7 @@ namespace COFFYAML {
COFF::symbol Header;
COFF::SymbolBaseType SimpleType;
COFF::SymbolComplexType ComplexType;
- StringRef AuxillaryData;
+ StringRef AuxiliaryData;
StringRef Name;
Symbol() {
memset(&Header, 0, sizeof(COFF::symbol));
@@ -270,9 +270,9 @@ static bool layoutCOFF(COFFParser &CP) {
for (std::vector<COFFYAML::Symbol>::iterator i = CP.Obj.Symbols.begin(),
e = CP.Obj.Symbols.end();
i != e; ++i) {
- unsigned AuxBytes = i->AuxillaryData.size() / 2;
+ unsigned AuxBytes = i->AuxiliaryData.size() / 2;
if (AuxBytes % COFF::SymbolSize != 0) {
- errs() << "AuxillaryData size not a multiple of symbol size!\n";
+ errs() << "AuxiliaryData size not a multiple of symbol size!\n";
return false;
}
i->Header.NumberOfAuxSymbols = AuxBytes / COFF::SymbolSize;
@@ -368,10 +368,10 @@ bool writeCOFF(COFFParser &CP, raw_ostre
<< binary_le(i->Header.Type)
<< binary_le(i->Header.StorageClass)
<< binary_le(i->Header.NumberOfAuxSymbols);
- if (!i->AuxillaryData.empty()) {
+ if (!i->AuxiliaryData.empty()) {
std::vector<uint8_t> AuxSymbols;
- if (!hexStringToByteArray(i->AuxillaryData, AuxSymbols)) {
- errs() << "AuxillaryData must be a collection of pairs of hex bytes";
+ if (!hexStringToByteArray(i->AuxiliaryData, AuxSymbols)) {
+ errs() << "AuxiliaryData must be a collection of pairs of hex bytes";
return false;
}
@@ -622,7 +622,7 @@ struct MappingTraits<COFFYAML::Symbol> {
IO.mapOptional("NumberOfAuxSymbols", S.Header.NumberOfAuxSymbols);
IO.mapRequired("Name", S.Name);
IO.mapRequired("StorageClass", NS->StorageClass);
- IO.mapOptional("AuxillaryData", S.AuxillaryData); // FIXME: typo
+ IO.mapOptional("AuxiliaryData", S.AuxiliaryData);
IO.mapRequired("ComplexType", S.ComplexType);
IO.mapRequired("Value", S.Header.Value);
IO.mapRequired("SectionNumber", S.Header.SectionNumber);
More information about the llvm-commits
mailing list