LLVM
5.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lib
IR
Comdat.cpp
Go to the documentation of this file.
1
//===- Comdat.cpp - Implement Metadata classes ----------------------------===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file implements the Comdat class.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#include "
llvm/IR/Comdat.h
"
15
#include "
llvm/ADT/StringMap.h
"
16
#include "
llvm/ADT/StringRef.h
"
17
18
using namespace
llvm;
19
20
Comdat::Comdat(
Comdat
&&
C
) :
Name
(
C
.
Name
), SK(
C
.SK) {}
21
22
Comdat::Comdat() =
default
;
23
24
StringRef
Comdat::getName
()
const
{
return
Name
->first(); }
llvm::Comdat
Definition:
Comdat.h:29
llvm::Comdat::getName
StringRef getName() const
Definition:
Comdat.cpp:24
Comdat.h
This file contains the declaration of the Comdat class, which represents a single COMDAT in LLVM...
Name
const char * Name
Definition:
AArch64AsmParser.cpp:3839
StringMap.h
StringRef.h
C
#define C
Definition:
LargeTest.cpp:25
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:49
Generated on Fri Sep 1 2017 14:13:38 for LLVM by
1.8.6