LLVM
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
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
using namespace
llvm;
17
18
Comdat::Comdat(SelectionKind SK,
StringMapEntry<Comdat>
*
Name
)
19
: Name(Name), SK(SK) {}
20
21
Comdat::Comdat(
Comdat
&&C) :
Name
(C.
Name
), SK(C.SK) {}
22
23
Comdat::Comdat() :
Name
(nullptr), SK(
Comdat
::
Any
) {}
24
25
StringRef
Comdat::getName
()
const
{
return
Name->first(); }
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition:
StringMap.h:28
llvm::Comdat
Definition:
Comdat.h:31
llvm::GraphProgram::Name
Name
Definition:
GraphWriter.h:43
llvm::Comdat::getName
StringRef getName() const
Definition:
Comdat.cpp:25
Comdat.h
This file contains the declaration of the Comdat class, which represents a single COMDAT in LLVM...
StringMap.h
llvm::SystemZICMP::Any
Definition:
SystemZISelLowering.h:327
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:40
Generated on Mon Aug 31 2015 10:59:45 for LLVM by
1.8.6