LLVM  9.0.0svn
Classes | Namespaces | Macros | Functions | Variables
WindowsResource.cpp File Reference
#include "llvm/Object/WindowsResource.h"
#include "llvm/Object/COFF.h"
#include "llvm/Support/FileOutputBuffer.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/ScopedPrinter.h"
#include <ctime>
#include <queue>
#include <system_error>
Include dependency graph for WindowsResource.cpp:

Go to the source code of this file.

Classes

class  llvm::object::WindowsResourceCOFFWriter
 

Namespaces

 llvm
 This class represents lattice values for constants.
 
 llvm::object
 

Macros

#define RETURN_IF_ERROR(X)
 

Functions

static Error llvm::object::readStringOrId (BinaryStreamReader &Reader, uint16_t &ID, ArrayRef< UTF16 > &Str, bool &IsString)
 
void llvm::object::printResourceTypeName (uint16_t TypeID, raw_ostream &OS)
 
static bool llvm::object::convertUTF16LEToUTF8String (ArrayRef< UTF16 > Src, std::string &Out)
 
static std::string llvm::object::makeDuplicateResourceError (const ResourceEntryRef &Entry, StringRef File1, StringRef File2)
 
Expected< std::unique_ptr< MemoryBuffer > > llvm::object::writeWindowsResourceCOFF (llvm::COFF::MachineTypes MachineType, const WindowsResourceParser &Parser, uint32_t TimeDateStamp)
 

Variables

const uint32_t llvm::object::MIN_HEADER_SIZE = 7 * sizeof(uint32_t) + 2 * sizeof(uint16_t)
 
const uint32_t llvm::object::SECTION_ALIGNMENT = sizeof(uint64_t)
 

Macro Definition Documentation

◆ RETURN_IF_ERROR

#define RETURN_IF_ERROR (   X)
Value:
if (auto EC = X) \
return EC;
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")

Definition at line 29 of file WindowsResource.cpp.

Referenced by llvm::object::readStringOrId().