LLVM 24.0.0git
MCTargetOptions.cpp
Go to the documentation of this file.
1//===- lib/MC/MCTargetOptions.cpp - MC Target Options ---------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "llvm/ADT/StringRef.h"
11#include <climits>
12
13using namespace llvm;
14
25
27 if (Version == "none")
28 return {INT_MAX, INT_MAX}; // Make binutilsIsAtLeast() return true.
29 std::pair<int, int> Ret;
30 if (!Version.consumeInteger(10, Ret.first) && Version.consume_front("."))
31 Version.consumeInteger(10, Ret.second);
32 return Ret;
33}
34
38
bool PreserveAsmComments
Preserve Comments in Assembly.
DwarfDirectory MCUseDwarfDirectory
EmitDwarfUnwindType EmitDwarfUnwind
LLVM_ABI StringRef getAssemblyLanguage() const
getAssemblyLanguage - If this returns a non-empty string this represents the textual name of the asse...
LLVM_ABI StringRef getABIName() const
getABIName - If this returns a non-empty string this represents the textual name of the ABI that we w...
static LLVM_ABI std::pair< int, int > parseBinutilsVersion(StringRef Version)
Parse a binutils version string ("major[.minor]" or "none") into a (major, minor) pair.
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
This is an optimization pass for GlobalISel generic memory operations.
EmitDwarfUnwindType
@ Default
The result value is uniform if and only if all operands are uniform.
Definition Uniformity.h:20