diff options
author | Fangrui Song <maskray@google.com> | 2020-02-14 18:16:24 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-02-14 19:11:53 -0800 |
commit | a55daa146166353236aa528546397226bee9363b (patch) | |
tree | 1ff7cbad9b4bfbc19bde788104e704419b664ea2 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | ead0b76382a5a20e8164583d86900de5b3fa9288 (diff) | |
download | llvm-a55daa146166353236aa528546397226bee9363b.zip llvm-a55daa146166353236aa528546397226bee9363b.tar.gz llvm-a55daa146166353236aa528546397226bee9363b.tar.bz2 |
[MC] De-capitalize some MCStreamer::Emit* functions
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 6038677..efefaf7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -101,13 +101,13 @@ public: CVMCAdapter(MCStreamer &OS, TypeCollection &TypeTable) : OS(&OS), TypeTable(TypeTable) {} - void EmitBytes(StringRef Data) { OS->EmitBytes(Data); } + void emitBytes(StringRef Data) { OS->emitBytes(Data); } void EmitIntValue(uint64_t Value, unsigned Size) { OS->EmitIntValueInHex(Value, Size); } - void EmitBinaryData(StringRef Data) { OS->EmitBinaryData(Data); } + void emitBinaryData(StringRef Data) { OS->emitBinaryData(Data); } void AddComment(const Twine &T) { OS->AddComment(T); } @@ -631,7 +631,7 @@ emitNullTerminatedSymbolName(MCStreamer &OS, StringRef S, SmallString<32> NullTerminatedString( S.take_front(MaxRecordLength - MaxFixedRecordLength - 1)); NullTerminatedString.push_back('\0'); - OS.EmitBytes(NullTerminatedString); + OS.emitBytes(NullTerminatedString); } void CodeViewDebug::emitTypeInformation() { @@ -696,7 +696,7 @@ void CodeViewDebug::emitTypeGlobalHashes() { assert(GHR.Hash.size() == 8); StringRef S(reinterpret_cast<const char *>(GHR.Hash.data()), GHR.Hash.size()); - OS.EmitBinaryData(S); + OS.emitBinaryData(S); } } @@ -1095,7 +1095,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV, // nice .asciz directive. StringRef Str = cast<MDString>(MD)->getString(); assert(Str.data()[Str.size()] == '\0' && "non-nullterminated MDString"); - OS.EmitBytes(StringRef(Str.data(), Str.size() + 1)); + OS.emitBytes(StringRef(Str.data(), Str.size() + 1)); } endSymbolRecord(AnnotEnd); } @@ -3116,7 +3116,7 @@ void CodeViewDebug::emitDebugInfoForGlobal(const CVGlobalVariable &CVGV) { CodeViewRecordIO IO(Writer); cantFail(IO.mapEncodedInteger(Val)); StringRef SRef((char *)data, Writer.getOffset()); - OS.EmitBinaryData(SRef); + OS.emitBinaryData(SRef); OS.AddComment("Name"); const DIScope *Scope = DIGV->getScope(); |